class UiInteractors::Interactors::TextInteractor

Public Class Methods

new(driver, name, xpath_root='//*') click to toggle source
# File lib/ui_interactors/interactors/text_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/ui_interactors/interactors/text_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/ui_interactors/interactors/text_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/ui_interactors/interactors/text_interactor.rb, line 17
def current_xpath
  "#{@xpath_root}//*[@data-text='#{@name}']"
end