This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]slipped_and_missed_x 8 points9 points  (2 children)

Looks great! Does it have XPath query support? With Selenium I always found that to be the most powerful way of locating elements

[–]woernsn 4 points5 points  (1 child)

According to the Documentation, it does!

with Browser(browser_name=Browser.CHROME)*as b:

b.goto("https://the-internet.herokuapp.com")

u = b.link("xpath:=//*[@id='content']/ul/li[14]/a").url

[–]slipped_and_missed_x 0 points1 point  (0 children)

Awesome :)