# File lib/selenium/webdriver/common/search_context.rb, line 35 def find_element(*args) how, what = extract_args(args) unless by = FINDERS[how.to_sym] raise ArgumentError, "cannot find element by #{how.inspect}" end bridge.find_element_by by, what.to_s, ref end