README.md in page-object-0.0.3 vs README.md in page-object-0.0.4
- old
+ new
@@ -14,11 +14,11 @@
end
When you include this module numerous methods are added to your class that allow you to easily define your page. For the login page you might add the following:
class LoginPage
- include Page Object
+ include PageObject
text_field(:username, :id => 'username')
text_field(:password, :id => 'password')
button(:login, :id => 'login')
end
@@ -30,10 +30,10 @@
login_page.login
Another approach might be to create higher level methods on our page object that hide the implementation details even further. Our page object might look like this:
class LoginPage
- include Page Object
+ include PageObject
text_field(:username, :id => 'username')
text_field(:password, :id => 'password')
button(:login, :id => 'login')