
Test
Get flash to fully experience Pearltrees
Getting started with Selenium 2
Using Page Objects with Selenium and Web Driver 2.0 | Summa Blog
Page Objects The Page Objects design pattern is outlined in the Selenium wiki , but to summarize, Page Objects are meant to encapsulate the messy internal state of a page. Changes in the presentation code should only require changes only to the Page Objects, not to the actual test code. Using a Page Object promotes consistency; there may be five different ways to legitimately determine that you are on the login page, but adhering to the one definition in the Page Object will prevent you from having to maintain the other variants. Page Objects should be ignorant of an application’s business logic, they should only be aware of page state and how to interact with it. By clearly delineating the test code from the page objects, you will be able to use the same page objects in a variety of tests cases and achieve code re-use.Bartosz Majsak Zurich, Switzerland Bartosz Majsak ( @majson ) is a software developer and consultant at Cambridge Technology Partners, based in Zurich, Switzerland, passionate about open source software and testing methodologies. By night, he’s an open source junkie, often found hacking on Arquillian and ShrinkWrap. Bartosz became an Arquillian advocate early on, publishing multiple articles about Arquillian and how to extend it on his company’s blog. It wasn’t long before Bartosz became a key contributor to the Arquillian project. His unique interest in testing brings an endless source of new ideas and integrations to the project.

