pageobjects Questions

3

Solved

I have built various Test Automation frameworks using the Page Object Pattern with Java (https://code.google.com/p/selenium/wiki/PageObjects). Two of the big benefits I have found are: 1) You can...
Graeme asked 31/1, 2017 at 14:28

3

Solved

The Question: What is the canonical way to define nested Page Objects in Protractor? Use Case: We have a complicated page that consists of multiple parts: a filter panel, a grid, a summary part,...

2

Solved

I know I could use (driver.findElements(By.xpath("Xpath Value")).size() != 0); However, I am using a Page Object Model, whose entire purpose is to predefine the WebElements in a separate ...
Jethro asked 13/12, 2016 at 15:52

6

Solved

When you are modelling your page objects, how would you deal with a page which has form and about 50 input fields on it? What is the best practice here? Would you create a page object and write a ...
Busywork asked 3/11, 2011 at 15:51

2

Solved

We are using the Page Object pattern to organize our internal AngularJS application tests. Here is an example page object we have: var LoginPage = function () { this.username = element(by.id("u...
Monophyletic asked 16/6, 2015 at 17:21

2

Solved

We've been using the Page Object pattern for quite a while. It definitely helps to organize the end-to-end tests and makes tests more readable and clean. As Using Page Objects to Organize Tests Pr...
Spiky asked 17/7, 2015 at 0:2

1

I have a Selenium WebDriver Page Object Model in C# 6. I am experiencing StaleElementReferenceExceptions while trying to click on ajax-loaded nav bar elements. This is confusing, because I'm using ...
Keary asked 25/8, 2015 at 16:24

1

Solved

I am building a Page Object Model in Selenium WebDriver for C#, using the PageFactory. Unfortunately, I have discovered that the FindsByAttribute will not initialize a SelectElement (HTML <sele...

3

I have built various Test Automation frameworks using the Page Object Pattern with Java (https://code.google.com/p/selenium/wiki/PageObjects). Two of the big benefits I have found are: 1) You ca...
Maynardmayne asked 26/6, 2015 at 10:33

3

Solved

I'm creating tests using Selenium 2 Web Driver with C#.Net. After reading through a lot of the Selenium documentation, I am left still feeling unsure on how to go about testing using the PageObject...
Schnorrer asked 16/11, 2011 at 10:5

5

Solved

Quick question about page objects in selenium webdriver. our site is very dynamic with lots of ajax and various authentication states. It is tough to figure out how to define each page object BUT l...
Sinusoidal asked 25/4, 2012 at 12:44

1

If I have a single spec that is using page object model, how do I run multiple browser instance for that same spec? For example I have spec: it('should run multi browser', function() { browser....
Gawen asked 19/3, 2015 at 23:55

1

Solved

So a coworker and I were discussing making a data object for our e2e tests. From my understanding about data objects they are used for decoupling your test suites. For example, my first test suite ...

5

Solved

When I try to use the class name that having space class = "country name" in page object, I'm getting: Compound class names not permitted Selenium::WebDriver::Error::UnknownError) How can I use ...
Selfjustifying asked 23/7, 2013 at 11:11

1

Are there any disadvantages of using page objects for Selenium tests?
Bridget asked 1/11, 2014 at 11:21

2

Solved

I'm trying to write a simple test using page objects pattern - based on the 'docs/page-objects'. I created a file describing the page object and other using this page object to test a page. //pag...
Grazynagreabe asked 27/8, 2014 at 4:21

2

Solved

I'm trying to write a page object in Selenium Webdriver using the page factory @FindBy annotations. The page object is for a sidebar, and the parent WebElement containing all elements the page obje...
Hl asked 16/6, 2014 at 20:31

2

Solved

What is page object pattern in Selenium WebDriver? What is the use of it and how can we use this in Selenium WebDriver? Example will be appreciated.

1

Solved

I'm moving from a Java environment to .NET and need to write Webdriver tests using a page object model. In Java I would use the following annotation: @FindBy(linkText = "More details") WebElemen...
Leggy asked 4/11, 2013 at 12:36

2

Solved

As long as I use PageObject pattern I wondered where should I wait for element on dynamic pages. Assuming we have test method and pageObject class. Should I do something like (in test method): Cl...
Blackett asked 17/9, 2013 at 7:16

1

Solved

I've been using Selenium WebDriver to implement functional tests for some projects that I've worked with. I'm trying to use the Page Object design pattern with Page Factory to factor out my locator...
Melisma asked 24/4, 2013 at 2:2

2

Solved

I've just started using WebDriver, and I'm trying to learn the best practices, in particular using PageObjects and PageFactory. It's my understanding that PageObjects should expose the various ope...
Gary asked 14/11, 2012 at 1:19

3

Is it possible to use the page-object gem and capybara to automate Ruby on Rails testing? When I attempt to access a page object after starting up my test I receive the following error: Unable to ...

© 2022 - 2025 — McMap. All rights reserved.