Ruby Selenium Web Drive: How to find specific element by xpath div id and css class

后端 未结 3 434
北海茫月
北海茫月 2021-01-27 22:45

I have a below html which am trying to test using ruby selenium web driver

3条回答
  •  没有蜡笔的小新
    2021-01-27 23:29

    I am trying to find the svg element of any given div id

    If this is what you want, you can try this one:

    driver.find_element(:id => "the_given_id").find_elements(:tag_name => "svg")
    

提交回复
热议问题