I want to click a button that is on a web page
i normally just do:
wb.document.all.(the button name).click
but now i cant find the button name!
<div class="vote">
<div class="but">
<input type="button" onclick="javascript:vote(3178850,0,0,0,20,130669,'48799cdf4db36a25439f6fafc8d721c8');" class="button-blue-big" value="Vote!" />
</div>
Please help! :)
Help Click a Button on a web page?
Started by lobfredd, May 11 2010 06:09 AM
2 replies to this topic
#1
Posted 11 May 2010 - 06:09 AM
|
|
|
#2
Posted 11 May 2010 - 12:53 PM
Is this meant to be in the Visual Basic forum?
I'm a bit confused as to what your problem is, though. If you post all of your code, might be a bit clearer =) (Also for next time this is an HTML/JavaScript problem!)
I'm a bit confused as to what your problem is, though. If you post all of your code, might be a bit clearer =) (Also for next time this is an HTML/JavaScript problem!)
My Company - My Homepage - My Twitter - My Google+ - My LinkedIn
"Things don’t have to change the world to be important.” - Steve Jobs
"Things don’t have to change the world to be important.” - Steve Jobs
#3
Posted 15 May 2010 - 05:47 AM
Here is a technique I used before when I had the same problem:
In the pageloaded event you can use a for...each loop to add an event handler for the click event of all the controls of the webpage. And in the click event add some code that would tell you the name of the Activecontrol, which is the control clicked. So, this way, when you click the button you want you will find its name.
Hope it works!(It didn't work for me)
In the pageloaded event you can use a for...each loop to add an event handler for the click event of all the controls of the webpage. And in the click event add some code that would tell you the name of the Activecontrol, which is the control clicked. So, this way, when you click the button you want you will find its name.
Hope it works!(It didn't work for me)


Sign In
Create Account

Back to top









