Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Selenium Click with x and y coordinates

by jandrew (Hermit)
on Sep 17, 2009 at 14:59 UTC ( #795902=note: print w/ replies, xml ) Need Help??


in reply to Selenium Click with x and y coordinates

I prefer to click on the button by it's Document Object Model "DOM" id and then you are not locked into the location on the screen.

$sel->click ( "id=button1" )
or walk the DOM tree
$sel-> click ( 'dom=document.getElementById( "11" ).parentNode.firstChild.firstChild' )


Comment on Re: Selenium Click with x and y coordinates

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://795902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2016-02-13 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (422 votes), past polls