Method: Selenium::Client::GeneratedDriver#get_css_count
- Defined in:
- lib/selenium/client/legacy_driver.rb
#get_css_count(css) ⇒ Object
Returns the number of nodes that match the specified css selector, eg. “css=table” would give the number of tables.
‘css’ is the css selector to evaluate. do NOT wrap this expression in a ‘count()’ function; we will do that for you.
1341 1342 1343 |
# File 'lib/selenium/client/legacy_driver.rb', line 1341 def get_css_count(css) return number_command("getCssCount", [css,]) end |