Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [pom]

A Project Object Model (POM) is the fundamental unit of work in Maven.

0 votes
0 answers
21 views

Unable to run feature files parallel with JUnit 4 and "mvn test" command?

I want to run my 5 Cucumber feature files with "Mvn test" Command parallely. Now, the "mvn test" or 'mvn build" runs fine and maven builds the project, but feature file dont ...
qatester972's user avatar
0 votes
2 answers
34 views

How to pass locale to page object models?

I have some tests in Cypress and I've implemented a page object model and reused some functions in all my tests. For a test, I'd like to validate some texts (that are different based on the language/...
Keipro's user avatar
  • 81
2 votes
1 answer
68 views

How to handle AB testing approach with similar page logic but different locators

I have a test suite that currently runs across different development environments. Recently a complete rewrite of the application was done & deployed to a new environment. The application looks &...
user52533's user avatar
0 votes
0 answers
370 views

Imitiating the Appium Inspector 'Refresh' button functionality in code? (Java)

is there a way for us to refresh the application's elements present in the DOM? similar to the way you refresh the elements using the Appium Inspector's 'Refresh' button? driver.refresh() only works ...
TCAuto's user avatar
  • 1
0 votes
2 answers
2k views

How to use explicit wait in POM selenium

I am trying to figure out how to use explicit wait in Selenium using the POM structure. I tried to google, but could not find any leads.
user's user avatar
  • 109
0 votes
0 answers
1k views

Facing error java.lang.RuntimeException: java.lang.NoSuchMethodException: jdk.proxy2.$Proxy9.proxyClassLookup() on run appium with POM

Hi everyone im facing this error on run appium with POM here is complete error java.lang.RuntimeException: java.lang.NoSuchMethodException: jdk.proxy2.$Proxy9.proxyClassLookup() at io.appium....
uzair shahid's user avatar
0 votes
1 answer
2k views

Appium Pagefactory throws noSuchMethodException when running from POM

When I try to run my appium scripts on the pom file ( with mvn verify or mvn test) I get a java.lang.RuntimeException: java.lang.NoSuchMethodException: jdk.proxy2.$Proxy12.proxyClassLookup() On the ...
Jano's user avatar
  • 113
2 votes
1 answer
52 views

Should Page Objects be reused or should new ones be created?

I am fairly new to using POM and I am wondering if there is a best practice when returning to a previously visited page. Is it better to create a new page object every time there is a page navigation? ...
Eric's user avatar
  • 61
0 votes
2 answers
103 views

Advices/Best practices/Validity on selenuim page object model

I have divided the system modules into several packages in eclipse. In there one java class is for one particular page and the other consists of the test cases. Apart from this, I have used the ...
user3806999's user avatar
1 vote
2 answers
53 views

How to plan selenium automation of webapplication when more than 1 person is involved

We are automating a web application, 3 people are involved using different machines and using bit bucket for code integration.how can we split the work and where to start from? As we may need to reuse ...
Na001's user avatar
  • 51
-3 votes
1 answer
350 views

Why do we create parameterized constructor in every PageObject class which accepts one driver reference when BaseTest has a global driver object? [duplicate]

When every test class will inherit driver, then why should we create constructor that takes driver object? public class BaseTest{ public static Webdriver driver = new ChromeDriver(); } public class ...
jeff64's user avatar
  • 1
0 votes
3 answers
3k views

What is the purpose of creating a BaseTest class which declares a global static WebDriver object in POM framework?

I am a newbie in Selenium Automation. I don't understand the concept of creating a "BaseTest" class which has one static Webdriver. I always get confused on this concept and end up creating multiple ...
nick235's user avatar
  • 17
0 votes
3 answers
6k views

Why is WebDriver instance declared static in Page Object model structure in Selenium?

I am a complete newbie in Selenium and java in general. I am trying to use the Page object model with Page factory to create Page object class for the Login page of an application. I am reading lot of ...
kishan342's user avatar
0 votes
1 answer
291 views

java.lang.NullPointerException on my POM project. I have my Page factories initialized and cant figure out the issue [duplicate]

I am getting the following error message in my IntelliJ The "TestBase.java:33" and "LoginPageTest.java25" essentially both point to the if(browserName.equals("chrome")) line of code in the base ...
orbira1frame's user avatar
3 votes
1 answer
2k views

How to resolve NullPointerException error while implementing POM with cucumber framework

I am getting java.lang.NullPointerException while executing my test case, I am using Page Object Modle with cucumber framework in my maven project, following are the code snippets BoxJunitScript.java ...
Aman Kumar's user avatar

15 30 50 per page