class SeleniumRecord::Scopes::LocatorScope
Class for giving custom scope to selenium objects
Attributes
scoped_locator[RW]
Public Instance Methods
class()
click to toggle source
# File lib/selenium_record/scopes.rb, line 25 def class __getobj__.class end
find(locator)
click to toggle source
# File lib/selenium_record/scopes.rb, line 13 def find(locator) root_el.find_element(locator) end
find_elements(locator)
click to toggle source
# File lib/selenium_record/scopes.rb, line 17 def find_elements(locator) root_el.find_elements(locator) end
root_el()
click to toggle source
# File lib/selenium_record/scopes.rb, line 9 def root_el @root_el ||= __rootel__.find_element(scoped_locator) end
run(&block)
click to toggle source
# File lib/selenium_record/scopes.rb, line 21 def run(&block) instance_eval(&block) end