私は selenium-webdriver を使用しており、本当にシンプルなものを探していますが、ドキュメントには見つかりませんでした。
これは私のコードの一部です:
browser = Selenium::WebDriver.for :firefox, :profile => profile
browser.navigate.to 'an_url'
# I find ancestor element
browser.find_element(:id, "displaylinks").find_element(:id, "link0").find_element(:class, "link-center")
# but I want to click the first link child of this last element
何か案は ?