sclevine / agouti

A WebDriver client and acceptance testing library for Go
MIT License
821 stars 105 forks source link

How to click via <li>XXX</li>?And how to find screen point X,Y #127

Closed a7a2 closed 7 years ago

a7a2 commented 7 years ago

<ul class="ui-nav" id="a-loginMethod-tabs">   <li class="" data-status="show_login1">XXX</li>   <li class=" active " data-status="show_login2">login2</li>   <br class="clear" /> </ul>

And how to find screen point X,Y with <li>XXX</li> ?

sclevine commented 7 years ago

Have you tried:

x, y, err := page.Find("[data-status='show_login1']").Elements()[0].GetLocation()