Logo: Relish

  1. Sign in

Project: Something

Simple elements

Two helper methods are generated for simple elements (such as headings, spans):

  • a elementname method to access the text contained by the element
  • a elementname_elementtype method to access the actual watir element

For example, with the following page class definition:

class MyPage < BasePage
  h1 :main_heading, :id => 'main_heading'
end

A main_heading method will be generated to access the h1 element with id main_heading and a
main_heading_h1 method will be generated to access the watir element.

Topics

  1. h1
  2. h2
  3. h3
  4. h4
  5. h5
  6. h6
  7. span

Last published over 4 years ago by markryall.