Method: PageObject::Platforms::SeleniumWebDriver::PageObject#h2_text_for
- Defined in:
- lib/page-object/platforms/selenium_webdriver/page_object.rb
#h2_text_for(identifier) ⇒ Object
platform method to retrieve the text from a h2 See PageObject::Accessors#h2
712 713 714 715 716 |
# File 'lib/page-object/platforms/selenium_webdriver/page_object.rb', line 712 def h2_text_for(identifier) process_selenium_call(identifier, Elements::Heading, 'h2') do |how, what| @browser.find_element(how, what).text end end |