Questions tagged [pageobjects]

A design pattern to represent a web page as an object. Usually used in UI / end-to-end testing and browser automation.

A page object provides access to a web page. In its implementation, a page object typically makes use of a web driver like or . The page object hides the html and web driver details, and provides an abstract interface to the page in terms of its application domain.

The page objects are subsequently used to create end-to-end test scenarios that click through the application. The use of page objects make these tests easier to maintain when details of the underlying pages change.

This tag can be used for questions on the design, implementation, and use of page objects for end-to-end testing of web applications.

More information:

845 questions
-2
votes
2 answers

How can I enter number digit by digit in field /selenium

So I have verification code that contains 7 fields and I have verification code itself. How can I enter this code by number in every field? I tried to do List, but my skills are not that good.
-2
votes
1 answer

trying to handle webtable in POM using pagefactory but error is thrown

strong textI was trying to handle webtable in POM using pagefactory but its throwing error if i try nto paste xpath directly but otherwise its not working @FindBy (xpath = "//table[@id='userTable']/tbody/tr[") WebElement before_xpath; …
jino
  • 69
  • 1
  • 12
-2
votes
2 answers

How to pass the same driver instance in page Object model?

My automation framework is using selenium + TestNG + PageObject model. Structure : My Testng class / test case : nullpointer error How can i pass the driver instance into my page objects?
santoshaa
  • 173
  • 2
  • 4
  • 10
-2
votes
2 answers

selenium Page factory handle different elements for same page for different users

I have a simple question. I 'm sure many of us might have got into the same situation. I am using page object pattern. Below are the steps i do along the navigation. Login to my application as one type of user. Click some link to go form page. On…
-3
votes
1 answer

Do we really need to instantiate the constructor in a method for Selenium Java?

In Java Selenium why do I need to instantiate the constructor in the method? public class Navigation extends BasePage { public Navigation(WebDriver driver) { super(driver); } public Navigation visitUsSite() { …
1 2 3
56
57