class UiInteractors::Interactors::ViewInteractor
Public Class Methods
new(driver, name=nil, xpath_root='//*')
click to toggle source
Calls superclass method
UiInteractors::Interactors::BaseInteractor::new
# File lib/ui_interactors/interactors/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/ui_interactors/interactors/view_interactor.rb, line 11 def action(name) ActionInteractor.new(@driver, name, current_xpath) end
checkbox_field(name)
click to toggle source
# File lib/ui_interactors/interactors/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/ui_interactors/interactors/view_interactor.rb, line 27 def dropdown_field(name) DropdownFieldInteractor.new(@driver, name, current_xpath) end
list(name)
click to toggle source
# File lib/ui_interactors/interactors/view_interactor.rb, line 19 def list(name) ListInteractor.new(@driver, name, current_xpath) end
text(name)
click to toggle source
# File lib/ui_interactors/interactors/view_interactor.rb, line 15 def text(name) TextInteractor.new(@driver, name, current_xpath) end
text_field(name)
click to toggle source
# File lib/ui_interactors/interactors/view_interactor.rb, line 23 def text_field(name) TextFieldInteractor.new(@driver, name, current_xpath) end
view(name)
click to toggle source
# File lib/ui_interactors/interactors/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/ui_interactors/interactors/view_interactor.rb, line 37 def current_xpath (@name ? "#{@xpath_root}//*[@data-view='#{@name}']" : @xpath_root) end