Retrieving value from a popover

19 views
Skip to first unread message

Jaypaque

unread,
May 12, 2017, 5:22:08 PM5/12/17
to splinter-users

Ok, so i need to retrieve the "Float" value (0,8.. , highlighted red) from the popover (highlighted blue).

 Finding the value by xpath isnt working, because the xpath has the popover id in it ( //*[@id="popover463860"]/div[2]/div[2]/text()) ) which is different for every value. 

And when getting the xpath like this /html/body/div[3]/div/div[3]/div/div[4]/div[2]/div[2]/text()   without the ID it just says that theres no text.

How do i go about retrieving this value? 

Thank you in advance

Gabriel Lima de Oliveira

unread,
May 17, 2017, 10:40:51 AM5/17/17
to splinte...@googlegroups.com
Suggestion: If you could add any "name" on the div tag, or even another class just to make it easier to track it, it'd help you find using either xpath or another lookup method.


 Att,
Gabriel L. Oliveira

--
You received this message because you are subscribed to the Google Groups "splinter-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to splinter-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gabriel Lima de Oliveira

unread,
May 17, 2017, 10:42:04 AM5/17/17
to splinte...@googlegroups.com
Or even surround the popover div into another defined div, with a defined id, so that you can track it easier using child lookup

like:  #mother_div > popover_div


 Att,
Gabriel L. Oliveira
Reply all
Reply to author
Forward
0 new messages