All Questions
Tagged with pom selenium-webdriver
23 questions
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 ...
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 &...
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.
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
-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....
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 ...
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? ...
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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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 {
...
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,...