class InteractorUIAutomation::Interactor::ViewInteractor
Public Class Methods
new(driver, name=nil, xpath_root='//*')
click to toggle source
Calls superclass method
InteractorUIAutomation::Interactor::BaseInteractor::new
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 3 def initialize(driver, name=nil, xpath_root='//*') super end
Public Instance Methods
action(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 11 def action(name) ActionInteractor.new(@driver, name, current_xpath) end
checkbox_field(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 31 def checkbox_field(name) CheckboxFieldInteractor.new(@driver, name, current_xpath) end
dropdown_field(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 27 def dropdown_field(name) DropdownFieldInteractor.new(@driver, name, current_xpath) end
element(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 15 def element(name) ElementInteractor.new(@driver, name, current_xpath) end
list(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 19 def list(name) ListInteractor.new(@driver, name, current_xpath) end
text_field(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 23 def text_field(name) TextFieldInteractor.new(@driver, name, current_xpath) end
view(name)
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 7 def view(name) ViewInteractor.new(@driver, name, current_xpath) end
Private Instance Methods
current_xpath()
click to toggle source
# File lib/interactor_ui_automation/interactor/view_interactor.rb, line 37 def current_xpath (@name ? "#{@xpath_root}//*[@data-view='#{@name}']" : @xpath_root) end