I have a below html which am trying to test using ruby selenium web driver
-
You are specifying a lot of levels in the CSS selector. From the HTML you posted, it doesn't look like you need them all. Using >
in a CSS selector specifies a child where using a space signifies any descendant. Any SVG
descendant of the DIV
should work. You should be able to use just this
rows = driver.find_elements(:css => "div.container-fluid.container-results svg")