Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

So I am trying to validate the facebook create account page as a practice. I captured the elements for first name, last name, email address, password, and gender. Then I captured the dropdown menu for ...
Hamza Ansari's user avatar
0 votes
1 answer
142 views

I have Options table with ON/OFF option (checkboxes, radio buttons and text fields). The table has 30 rows. I stored locators as ENUM class OptionType(Enum): PAYMENT_TYPE_CREDIT_CARD = "...
Yaroslav Makovskiy's user avatar
0 votes
2 answers
115 views

I'm getting the following error attempting to automate my login procedure into a page object. this.signIn is not a function Here is my page object: export class OktaLoginPage { oktaServer = Cypress....
Jim Kennedy's user avatar
-2 votes
1 answer
390 views

I have more than 500 web-elements in a webpage. If I use Page Object Model with PageFactory.initElements() in selenium it will initialize all the elements once the object is created. Lets says I am ...
Sathya's user avatar
  • 1
0 votes
2 answers
382 views

Im new to Playwright, but I know that we can re-use the authencation with Playwright. However, when I approach the test with POM, it seems like I could not use it. Could anyone able to help me with ...
PaulTran1605's user avatar
1 vote
1 answer
273 views

I have the following page object model representing a widget in my app /** * Contains common actions for all widgets */ export default abstract class AbstractWidget { private widgetId: number; ...
Boris Grunwald's user avatar
0 votes
0 answers
199 views

I created a simple Page Object style test that automates testing for language changes on a site. Locally the test runs correctly, but when running in jenkins an error occurs. I have attached a ...
Artyom's user avatar
  • 13
0 votes
1 answer
84 views

I have one utility class as DataManager.java where I have written a method to read data from an excel sheet. public static XSSFWorkbook xssfWorkbook; public static XSSFSheet xssfSheet; public static ...
Nivasha Pathirana's user avatar
0 votes
1 answer
889 views

So i've ran into a super strange issue that while i've fixed im not exactly sure why this is happening: I have a base page object that all other page objects inherit from. It's pretty simple and looks ...
msmith1114's user avatar
  • 3,307
0 votes
0 answers
91 views

Page object model and using driver.find elements int noOfLinks = driver.findElements(By.xpath("//p[@class='_78mc9p']")).size(); System.out.println(noOfLinks); Prints the size as &...
noobtestauto's user avatar
0 votes
1 answer
733 views

I am doing automation testing using Cypress with JavaScript. I have to manage a test case for add, search and edit user. I have created a different test case for each. After adding user, I verified ...
Rutvi Desai's user avatar
0 votes
1 answer
3k views

I'm currently working on automated tests with the page object using Playwright, and I have a function scrollDownAndUpOnboarding that's designed to scroll down and then up on a web page. However, I've ...
Andres Mitre's user avatar
0 votes
0 answers
37 views

I wanted to try and implement Page Object Model in my code. The first page would be responsible for opening url, and giving username and password. Currently my code opens the url and loads the webpage ...
Sakhi's user avatar
  • 1
1 vote
1 answer
805 views

So im pretty much used to always using classes when writing automation code (Using the Page object Model). However i've came across some PoM/Component sample code that im not really used to seeing. ...
msmith1114's user avatar
  • 3,307
0 votes
1 answer
185 views

I have an automation framework that is driven using page object model using page factory @FindBy(xpath = "xpathValue") private WebElement notificationIcon; I want to have an reusable ...
NoNoNo's user avatar
  • 89
1 vote
1 answer
47 views

Here is a small test carried out with selenium in python: locators = { "entreprise_selection": ("ID", 'uidropdownCompanies'), "entreprise_load": ("...
Michel Blaze's user avatar
0 votes
1 answer
1k views

I am learning about POM Selenium + Java. I want to refactor class for tests. Right now I have one class but I want divide code into two class: one class will be for initializing browser with ...
shgree's user avatar
  • 3
1 vote
1 answer
230 views

I currently work on UI-level e2e test automation of a web app, where entire flow is concentrated in one page. To avoid huge single page object size, I've split it into smaller components, listed out ...
hubesal's user avatar
  • 189
0 votes
1 answer
536 views

I am writing Playwright Cucumber TypeScript framework (stack must be like this, even though we don't do BDD at all). I created POManager to manage all Page Object classes (what do you think about this ...
RafalLovesWorking's user avatar
0 votes
1 answer
244 views

When designing an automation framework, should i start by populating page object models with all of the elements in my application or only the elements that are being used within exsisting test ...
Gs10's user avatar
  • 11
1 vote
2 answers
4k views

In Playwright (Like many other automation frameworks) you can create page objects. Using an example from Playwrights documentation: https://playwright.dev/docs/test-fixtures#without-fixtures You have ...
msmith1114's user avatar
  • 3,307
0 votes
2 answers
114 views

I have a method that gets the href-attribute of an element hrefAppTheme and checks if its one of the values of the string-array appThemes: describe('...',() => { it('should ...', () => { ...
Jan and RESTless's user avatar
0 votes
2 answers
381 views

I am using Cypress with page object model in my project. I have 2 commands in homepage.js : One to get custId from header section & the other to get custId on footer of the page. Now I need to ...
Rahul's user avatar
  • 27
0 votes
1 answer
191 views

I have many webelements that are same for every web page. Should I create a new page class for including all the common web elements?
NoNoNo's user avatar
  • 89
0 votes
1 answer
4k views

I am encountering a java.lang.NullPointerException error when trying to run my Selenium test with TestNG. The error message states: Cannot invoke "org.openqa.selenium.SearchContext.findElement(...
Hoxzy's user avatar
  • 11
2 votes
4 answers
3k views

Lets say I have a class containing page objects. If I instantiate that class in a test, then I can use the page objects as you normally would with playwright. I would like to get the css value as a ...
Scott Littleton's user avatar
3 votes
1 answer
1k views

Currently I am writing a small test project for which I use the Page Object Model and Playwright. I have pages with methods returning either the page itself or another page. This makes it easier for ...
Simon's user avatar
  • 61
0 votes
0 answers
120 views

I'm trying to implement a page object pattern in a project that i cloned. The problem is that when i try to import a module, I get an error from VScode ='File '../path/module' is not a module.' I ...
knalepa's user avatar
  • 49
0 votes
1 answer
709 views

I've got a web page, where I have defined numbers of filters. Chosing value for a single filter immediately affects shown results. I'm trying to define a function that will iterate through each filter,...
An Stack's user avatar
0 votes
1 answer
823 views

I am trying to implement POM in playwright, I have created a class in which I am trying to click two buttons to navigate to a page and then apply URL assertion to check the expected URL. But the URL ...
Subtain Shah's user avatar
1 vote
1 answer
689 views

Is there a way to dynamically set the xpath or id used by Appium @FindBy() so I dont have to create a dozen individual WebElements? I am using the Page Object Model to automate a mobile app. I use to ...
cdub's user avatar
  • 430
1 vote
1 answer
257 views

I am working on cypress for web application automation and having an issue with accessing a function from an object. The code below is from a javascript file in 'e2e' folder. class productsDemo { ...
rino's user avatar
  • 295
0 votes
1 answer
145 views

I writing an e2e test automation for some application that requiere also a log in test. BeaforeEach test i perform the login test, at the first it block the test passes But at the second it block, ...
Yovel Hadad's user avatar
0 votes
0 answers
51 views

I have total for ex. 5 properties and action button for every property as shown in the picture. Each property has a status either manual or post. I need to find the property which has 'manual' status ...
kavi's user avatar
  • 11
1 vote
2 answers
3k views

Say, there are multiple elements and their and multiple child elements. I have selected the parent elements and from the code the I want to select the child elements. <html> <body> <div&...
noobie_coder's user avatar
0 votes
0 answers
279 views

I have to build test automation for a web project. I will use Java language and Selenium WebDriver. Before I usually used the Page Object pattern and didn't see anyone else using a different pattern. ...
Evgenii Plugatar's user avatar
1 vote
2 answers
164 views

I see the following step in noraUI sources @And("I expect to have {page-element} with the text {string}(\\?)") public void expectText(Page.PageElement pageElement, String textOrKey, List<...
Dany's user avatar
  • 21
1 vote
1 answer
728 views

I am trying to apply the Page Object Model (POM) to some tests using Cypress. Unfortunaly I can't read some webelement value and return it as a method or function value. I needed to make something ...
naguall's user avatar
  • 53
0 votes
2 answers
3k views

good morning. I'm facing the next issue below: TypeError: page.$(...).toBeVisible is not a function The line in question --> await expect(await page.$(homeIcon()).toBeVisible()) This is the login-...
nosequeweaponer's user avatar
1 vote
0 answers
204 views

So I am using playwright/test with Typescript I have a testapp.ts setup which contains all my methods eg for logging in, navigating etc Inside my test example.spec.ts each test looks like this: ...
David's user avatar
  • 59
0 votes
2 answers
2k views

I want to know how to handle a tab or multiple tabs when using Page object model. My test runs successfully if i don't use the page object model function to run it. Basically when i click and navigate ...
Alex's user avatar
  • 1
0 votes
1 answer
531 views

I've created a test script in webdriverio (version 6.14.13) and mocha, which uses the page object functionality. This is because some of my test script is used in the vast majority of my other scripts,...
Darren Harley's user avatar
0 votes
1 answer
176 views

I'm trying to have a page object class with just the elements inside it. but when using a instance from the steps (testclass) I can't use them. the Xpaths are correct, if I try to call them inside my ...
Allison's user avatar
0 votes
1 answer
408 views

Somebody can give a help... I am just starting to learn more about PageObjects and Python and I am facing the following problem: [Card(name ="Dormir", description = "Dormir é muito bom&...
Bruno Lorena's user avatar
0 votes
2 answers
1k views

I am trying to locate a buttons element, but every time my test run the element keeps on changing name. The class keeps changing the last digits. For Example, jss2383 to jss4132 as well as all ...
Paul Blart's user avatar
0 votes
0 answers
73 views

I have 3 files: utlis.py is the base po for page actions login_page_po.py is the login page po test_login.py is the test I defined utlis.py class DriverUtil: """Common utils for ...
Jeff's user avatar
  • 1
0 votes
2 answers
1k views

I am creating a page object for a webpage for a web app that I am testing. I am using Cypress for my automated tests. I was thinking about using one of two methods for finding page elements. See my ...
Andy Short's user avatar
0 votes
1 answer
79 views

I have below page object want to simplify it: from selenium.webdriver.common.by import By from support.utlis import DriverUtil class LoginPage: def __init__(self): self.driver = ...
Jeff's user avatar
  • 1
0 votes
1 answer
63 views

I am new to automations.I have a drop down box with many available selections and want add automation but not sure how to add the with the selectors. I was able to get one selection working but want ...
Naomy 's user avatar
2 votes
0 answers
929 views

In my current Playwright test automation project, we use page object model pattern. At the beginning I was initializing all page objects within a test (usually in before hooks) test('something', async ...
Coldwine's user avatar

1
2 3 4 5
17