module PageObject::Platforms::SeleniumWebDriver::Button

Public Instance Methods

text() click to toggle source

Override PageObject::PLatforms::SeleniumElement#text to get text from buttons and attribute(‘value’) from inputs

# File lib/page-object/platforms/selenium_webdriver/button.rb, line 9
def text
  element.tag_name == 'button' ? element.text : element.attribute('value')
end