Method: Selenium::WebDriver::SearchContext#find_elements

Defined in:
lib/selenium/webdriver/common/search_context.rb

#find_elements(*args) ⇒ Object

Find all elements matching the given arguments

Raises:

  • (ArgumentError)

See Also:



80
81
82
83
84
85
86
87
# File 'lib/selenium/webdriver/common/search_context.rb', line 80

def find_elements(*args)
  how, what = extract_args(args)

  by = SearchContext.finders[how.to_sym]
  raise ArgumentError, "cannot find elements by #{how.inspect}" unless by

  bridge.find_elements_by by, what, ref
end