Skip to content
cheezy edited this page Jul 25, 2011 · 7 revisions

The PageObject module adds several methods to your page object. The methods that are added follow a fairly similar pattern. Let's take a look at a few of the methods and their generated output.

The call to text_field like this one

text_field(:first_name, :id => 'fname')

will produce the following three methods

def first_name