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