Jump to content

Help Click a Button on a web page?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
lobfredd

lobfredd

    Newbie

  • Members
  • Pip
  • 1 posts
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! :)

#2
so1i

so1i

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 312 posts
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!)
My Company - My Homepage - My Twitter - My Google+ - My LinkedIn

"Things don’t have to change the world to be important.” - Steve Jobs

#3
thanasis2028

thanasis2028

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts
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)
My software company:Porosis Software
Games: Terrantula
Apps: Mathanasis, ColorGrabber (New!)