Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pom]

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

0
votes
0answers
20 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 ...
-1
votes
1answer
41 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....
0
votes
2answers
37 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 ...
0
votes
0answers
18 views

How to activate rules in SonarQube which are listed only in pmd.xml in maven project

For the SonarQube report, I have listed some rule sets in the pom.xml file in a maven project, I need to deactivate all rules in sonarQube and need to generate the SonarQube report only for listed ...
0
votes
1answer
50 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? ...
0
votes
0answers
23 views

How to pass parameters from groovy script in pom.xml to .properties file?

I have this groovy plugin to replace my project.basedir with \\ to /. This work fine in my console. <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>...
2
votes
2answers
3k 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 ...
-2
votes
1answer
131 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 ...
1
vote
2answers
2k 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 ...
1
vote
1answer
42 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 ...
1
vote
1answer
2k 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 ...
6
votes
1answer
2k 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 ...
5
votes
2answers
10k 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 ...
3
votes
1answer
693 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 ...
0
votes
0answers
44 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 ...
3
votes
3answers
658 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
3answers
157 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 { ...
5
votes
4answers
4k 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 ...
5
votes
1answer
487 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,...