2
Answers

Click a button on a webpage

Photo of Tajrib Mojarib

Tajrib Mojarib

14y
3.2k
1
Hello,

I have a web page that contains a form and a button.
My application contains:
- Webbrowser (which loads and displays the web page)
- A button (which runs my task)


I make a success to fill the web form automatically by my application.
The problem is that it is impossible for me to find a code that allows my application to click on the button on the webpage.

The source code for the button (in the webpage):

 <INPUT onclick=submitQuickReplyForm(1) value="Envoyer la réponse" type=button><INPUT 
value=newreply type=hidden name=post><INPUT value=quick type=hidden
name=format><INPUT value=1 type=hidden name=quickmode><INPUT value=25218769
type=hidden name=topic>

Thanx.

Answers (2)

0
Photo of Crish
NA 2.4k 92.7k 14y
Hi

You can also click the button programmatically using below link.

http://stackoverflow.com/questions/96153/how-to-click-a-button-on-an-asp-net-web-page-programmatically
0
Photo of Abhimanyu K Vatsa
NA 40.4k 21.6m 14y
hey....

there is lots of things to be outlined....

it is almost less usable, coz form is form and it is only for to fill by users. that is another thing, assuming any user is logged in your website and then wishing to fill any form then some of fields on form will automatically be filled by database like his username, fullname, address, emailid etc. but these all details should be exist in database.

above all can be done by using codes inside pageload event handler.

Page_Load()
{

}


thanks