Sha256: ee8a3d224a63056f61ac5685b3d8105a7469cddafdb418aa27d08271e0059e67
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
module Selenium module WebDriver module SearchContext def find_element(*args) how, what = extract_args(args) unless by = FINDERS[how.to_sym] raise ArgumentError, "cannot find element by #{how.inspect}" end result = bridge.find_element_by by, what.to_s, ref self.found_element result result end def find_elements(*args) how, what = extract_args(args) unless by = FINDERS[how.to_sym] raise ArgumentError, "cannot find elements by #{how.inspect}" end bridge.find_elements_by by, what.to_s, ref end end # SearchContext end # WebDriver end # Selenium
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
red-glass-0.0.5 | lib/Selenium/search_context.rb |
red-glass-0.0.4 | lib/Selenium/search_context.rb |