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