Page Object is a design pattern used when creating browser automation.

learn more… | top users | synonyms

0
votes
1answer
45 views

Selenium WebDriver - how to cleanly code with PageObjects in combination with By locators?

I'm using the PageObjectModel as I'm understanding it. The FindsBy elements are instantiated by the PageFactory (in the constructor) public class wizard_Uittreksel_Bestemmeling { private readonly ...
0
votes
2answers
54 views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
2
votes
1answer
274 views

Best approach for Page Object Model Framework where the page structure changes very frequently

We are developing Page Object Model Framework for our web application test. The problem is we are having three different structure for the same page type. We want our automation to work in all cases. ...
0
votes
2answers
108 views

Newbie: Unable to identify objects in QTP from QC?

I started working with QTP 11.0 a few days back. I am trying to write a small script to pass the test cases(with steps) in the Test Lab module of hp QC 10.00. But while adding objects in the object ...
0
votes
2answers
331 views

XPath not recognised in page object model in WebDriver [closed]

xpath not recognised in page object model in webdriver. @FindBy(xpath = "//td[contains (text(),'xxx')]") public WebElement topMenu; topMenu.click(); Error: Unable to locate element: ...
1
vote
1answer
160 views

Best resources for learning Ruby/Cucumber/Rspec test suite organization and refactoring [closed]

I'm working with a Cucumber suite that needs refactoring and organization. The end goal is to have a maintainable suite of tests that matter enough that developers will stop if the cucumber tests are ...
0
votes
1answer
56 views

Need info about WTWebUIAUTO package in .NET

I have recently gone through a Test Automation pattern i.e., BeyondPageObjectpattern in Selenium. While going through the code I came across a package WTWebUIAuto. Can anybody give me some info about ...
4
votes
3answers
746 views

How to implement Page Objects Pattern for an utter dynamic page

Can any one throw some ideas for the best approach for implementation of page object in the below case? - The more the ideas the better - please do write what ever you think small or big dosent ...
2
votes
2answers
220 views

What is page object modelling? and Why is it so important?

I have been hearing a lot about page object modelling? Why is it so important? Can someone please outline me page object model? I'm currently working as QE in webservices area
1
vote
0answers
61 views

Any experience in generating UI pages and test wrappers for UI?

Imagine that there is a non-trivial logic in the page, for example: IF element E1 in dropdown D1 is selected THEN button B1 is disabled ELSE B1 is enabled IF element E2 in dropdown D2 is selected ...
1
vote
2answers
557 views

Do I need the PageObjects design pattern or not?

Right now I have a Selenium WebDriver framework that looks like this (vastly simplified): \app_func.py -- app_func has the web app's "actions", such as "save a new search" \app_data.py -- app_data ...
3
votes
1answer
4k views

How should I organize a TestNG suite for Selenium 2 WebDriver tests that use page objects?

I'm trying to organize a functional test suite for the UI in a CRUD web application using TestNG-style Selenium 2/WebDriver tests. I've isolated page-interaction logic into distinct page objects, and ...
6
votes
1answer
6k views

How to use Selenium's PageFactory annotations with dynamic loaded elements?

I'm rewriting some Selenium tests according to the page object design pattern taking advantage of Seleniums' annotations. My problem is that I have some html select elements whose option elements are ...
6
votes
1answer
624 views

PageObjects: Aggregation/Composition vs Inheritance for nested components

I need to refactor my Selenium tests, and was wondering what the best design solution would be for a portal with a hierarchical page organization. We are using tiles, and we have defined a baselayout ...
7
votes
1answer
2k views

Is Selenium's LoadableComponent a good solution as test design pattern?

I need to refactor my Selenium tests, and come across their LoadableComponent wiki page. I began trying to use it, though I couldn't really understand what is it good for. I took a look at their ...
9
votes
4answers
1k views

What are the trade-offs of using page objects instead of a collection of functions in UI automation?

I've been using Selenium off and on for the past two years. Recently I've been seeing more references to page objects. (I'm referring to page objects as an means of organizing UI automation code -- ...
18
votes
10answers
6k views

Page Objects design issues

I have started using the Selenium 2 /Webdriver web automation framework a couple of weeks ago and I'm generally pleased, but I find myself unsure about how to best design my Page Objects. The ...