Skip to main content

Questions tagged [pom]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 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
35 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
377 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
106 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
54 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
0 votes
1 answer
1k views

How to generate report using extent reports in Page Object Model in C#

I have created a POM framework using NUnit in C#. I have created Reporting.cs file which creates reports for the test in that class. How I can generate reports for all tests in different classes ...
Ravi Pal's user avatar
  • 101
3 votes
3 answers
308 views

How to abstract data classes to be more object oriented?

I have run into problems keeping my tests as object-oriented as possible. I have had to rewrite large portions of my code multiple times now, and I feel that there is a better approach to what I'm ...
kkrenzke's user avatar
3 votes
0 answers
840 views

Using maven to create a standalone jar file that executes in any OS

I am trying to create a standalone selenium-TestNG tests Jar file that can be executed in any OS as part of CI/CD. My POM.xml is as follows: <project xmlns="http://maven.apache.org/POM/4.0.0&...
PDHide's user avatar
  • 11.1k
1 vote
2 answers
3k views

Nightwatch: Timed out while waiting for element to be present. - expected "found" but got "not found"

Using Nighwatch's POM below is a page function to click a button, page needs to be refreshed and validate if element present. using this.api.refresh() to refresh the page. But waitForElementPresent ...
Vignesh Sankar's user avatar
-1 votes
1 answer
640 views

Getting "java.lang.NullPointerException" exception when i try to run my POM test [duplicate]

I have 2 classes in my project First class contains all the webelements Second one for method where i am using this elements package facebook; import org.openqa.selenium.By; import org.openqa....
divyang jani's user avatar
0 votes
2 answers
442 views

How to locate a link using page object model after mouse over

When I hover over login text there are list of links, i need to select Infostore using Page Object model approach. I am new to Selenium could any one help. I have the outer HTML for you: <div ...
Ramesh Nanjundappa's user avatar
0 votes
1 answer
884 views

Use Login method before test

I use POM pattern in Selenium tests. To run tests OpCreate and OpEdit, a user should be logged in. I have positive test for Login, but how to run Login every time OpCreate and OpEdit tests are run? ...
Artur's user avatar
  • 229
2 votes
2 answers
8k views

testng.xml is not executing when we run pom.xml for maven project selenium

While executing my pom.xml file through maven test my BUILD is getting SUCCESSFUL but my testng.xml is not executing. I tried with executing 13 classes and with single class for both the time it ...
Anupam Sahu's user avatar
-2 votes
1 answer
609 views

Page chaining in POM method

I have created three packages. generic webpage script In generic I have base test and other common methods. In webpage I created class for each web page. In Script I have my testcases. I need ...
user31899's user avatar
1 vote
2 answers
9k views

How to send variable (dynamic value) at @findby in POM using java

How to send variable with dynamic value at @findby in POM using java like - //div[@class='item']/div[@class='containerbody'][@columnid=' "+i+" ']/div/div[contains(@class,'swimLaneheader')] where i ...
Sreya's user avatar
  • 11
1 vote
1 answer
451 views

Clean pom.xml from all not used dependencies

Maybe this question was already posted here. If yes, please attach the link, I couldn't find out the same. I would like to clean my old and not used dependencies from pom.xml, can someone advice me ...
G.Guy's user avatar
  • 25
3 votes
1 answer
6k views

Unable to run cucumber tests from command line

I know this is the most common question but sorry I am posting this again as I tried all the solutions but couldn't solve the issue, Problem: I am unable to run my cucumber tests through maven and ...
LaxmiMaddali's user avatar
7 votes
1 answer
3k views

POM vs PageFactory

I'm starting my career as a QA Automation Engineer coming from a Jr dev background. I noticed that there are two main design patterns for Selenium, POM and PageFactory. Which is the preferred design ...
chris's user avatar
  • 81
4 votes
2 answers
17k views

Correct Strategy for Element to be not present in DOM

I have scratching my heads around this problem for two days. I have a test where I need to check if a spinner is not visible to the user. This is the first test of a series of tests, and until the ...
demouser123's user avatar
  • 3,532
3 votes
1 answer
1k views

Cucumber with Protractor - Multiple Features Not Executed Properly

I have a pretty small POM based project for learning Cucumber with Protractor. I am using TypeScript. I am trying to perform pretty basic actions (clicking on button, clicking on a menu item) on ...
demouser123's user avatar
  • 3,532
0 votes
0 answers
46 views

Advice For Creating POM Test Framework [closed]

I am developing a framework for the popular e-commerce trading website platform (Amazon) – from scratch. I will be starting a new automation testing role, and, I need to get more practice before I ...
user27403's user avatar
4 votes
3 answers
846 views

Design patterns specific for test automation

Software engineering has many design patterns, including Adaptors, Abstract Factories, Decorators etc. Test automation, as a branch of software engineering, can use same patterns but has also its own ...
3 votes
3 answers
174 views

What is the most standard way to use POM in Selenium?

I have a login page in my application which I am trying to automate. Should that be automated with a POM class which has a different function for each action, like this: public class LearningPOM { ...
kaushik3993's user avatar
5 votes
4 answers
7k views

What framework is Page Object Model

What framework is Page Object Model? I would argue that it is data-driven, since, even though many actions are wrapped in user created methods, it is not totally reliant on keywords. Thus it is not ...
Richardson's user avatar
5 votes
1 answer
795 views

keep test data of json format in pom patterm

Can you please tell me how to write test data in the page object pattern. Here I am using multiple packages. One is for locators identification, another is for page factory for initializing elements,...
user avatar