class UiInteractors::Interactors::ActionInteractor

Public Class Methods

new(driver, name, xpath_root='//*') click to toggle source
Calls superclass method
# File lib/ui_interactors/interactors/action_interactor.rb, line 3
def initialize(driver, name, xpath_root='//*')
  super
end

Public Instance Methods

activate() click to toggle source
# File lib/ui_interactors/interactors/action_interactor.rb, line 7
def activate
  find_element.click
end

Private Instance Methods

current_xpath() click to toggle source
# File lib/ui_interactors/interactors/action_interactor.rb, line 13
def current_xpath
  "#{@xpath_root}//*[@data-action='#{@name}']"
end