class InteractorUIAutomation::Interactor::ElementInteractor
Public Class Methods
new(driver, name, xpath_root='//*')
click to toggle source
Calls superclass method
InteractorUIAutomation::Interactor::BaseInteractor::new
# File lib/interactor_ui_automation/interactor/element_interactor.rb, line 3 def initialize(driver, name, xpath_root='//*') super end
Public Instance Methods
does_not_have_text!(text)
click to toggle source
# File lib/interactor_ui_automation/interactor/element_interactor.rb, line 11 def does_not_have_text!(text) wait.until { find_element.text != text } end
has_text!(text)
click to toggle source
# File lib/interactor_ui_automation/interactor/element_interactor.rb, line 7 def has_text!(text) wait.until { find_element.text == text } end
Private Instance Methods
current_xpath()
click to toggle source
# File lib/interactor_ui_automation/interactor/element_interactor.rb, line 17 def current_xpath "#{@xpath_root}//*[@data-element='#{@name}']" end