Closed a7a2 closed 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>
<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> ?
<li>XXX</li>
Have you tried:
x, y, err := page.Find("[data-status='show_login1']").Elements()[0].GetLocation()
<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>
?