pageobjects Questions
2
Solved
Is it possible to require that a struct have a particular field as part of a trait? I am doing some web automation in Rust with the thirtyfour_sync crate. I want to write some traits with default i...
Potamic asked 29/6, 2021 at 2:31
4
Solved
I just inherited some code which makes me uneasy: There is a testing library, full of classes corresponding to webpages on our site, and each webpage class has methods to automate the functionality...
Weighbridge asked 21/4, 2011 at 19:37
8
Solved
Is there an elegant way to get the By locator of a Selenium WebElement, that I already found/identified?
To be clear about the question: I want the "By locator" as used to find the element. I am i...
Speechless asked 28/7, 2015 at 12:55
4
I was reading about page objects and design patterns on the Webdriver project site and came across pagefactory. It doesn't look like the Webdriver for Python API includes pagefactory. Is this true?...
Vociferous asked 12/12, 2011 at 3:9
6
Solved
I'm following page object design pattern for Selenium automation and I can guess that many people store locators in .properties file and access them in code. It seems great to keep locators at sepa...
Antilog asked 22/1, 2015 at 14:41
4
Solved
Is there a way to wait for an element not present in Selenium using PageFactory annotations?
When using:
@FindBy(css= '#loading-content')
WebElement pleaseWait;
to locate the element, and then...
Chapbook asked 13/2, 2019 at 11:45
4
Can anyone help me by answering the difference between @By and @Findby while using Selenium through Page Object Model.
Spirochete asked 23/6, 2020 at 6:53
4
Solved
I'm a relatively new QA Engineer working on learning Selenium (in Java) and I want to use page objects to model my pages.
Currently, the way I'm doing it, my page object classes are collections o...
Slipway asked 11/11, 2014 at 17:31
1
Solved
I have a test in Selenium WebDriver with Page Object Model, if I run the following test open two windows in the Chrome browser, first window is empty in a URL line. How I can opening only one with ...
Nolly asked 21/7, 2020 at 20:55
1
I just entered the world of testing with puppeteer and jest, and I was wondering what the best practice was in terms of folder architecture and logic.
I've never done testing before and I think I'...
Seely asked 27/2, 2020 at 22:1
4
Solved
All my page objects look something like this:
elements: {
header: {
locateStrategy: 'xpath',
selector: "//h3[text()='Welcome']"
},
loginButton: {
locateStrategy: 'xpath',
selector: "//butt...
Pam asked 22/3, 2016 at 6:53
5
Solved
With Test Automation's Page Object Model we link pages together like this:
WebDriver driver = new WebDriver()
HomePage homePage = new HomePage(driver);
LoginPage loginPage = homePage.GoToLoginPage...
Gorlin asked 15/10, 2014 at 9:19
6
First-time poster. I've been working in UI automation for many years, but was only recently introduced to/instructed to work with the Page Object Model. Most of it is common sense and includes tech...
Sinistrorse asked 20/6, 2012 at 19:30
2
This is a question I cannot find a definitive source on and am hoping to get some answers based on users previous experience mainly with explanations as to why a certain approach DID NOT work out.
...
Motherland asked 29/7, 2019 at 9:41
3
I am trying to learn the PageFactory model. I understood the fact that when we do a initElements, the WebElements are located. Say for example, I click on a webelement and because of which there is...
Arleenarlen asked 30/6, 2017 at 4:18
2
Solved
I'm going to organize an explicit wait in Selenium like this:
WebDriverWait = new WebDriverWait(driver,30);
WebElement element = wait.until(ExpectedConditions.presenceOfElementLocated(locator));
...
Ludvig asked 8/11, 2017 at 23:1
2
Solved
I have added hardcode wait thread.sleep() in my below code. How to use explicit wait. I want to wait till "username" WebElement appear. My program is working perfectly. I have already written testc...
Heddle asked 12/1, 2019 at 9:13
4
Solved
I'm trying to use Page Object pattern in Java and having some trouble with @FindBy/XPath.
Earlier, I used the following construction in Groovy:
driver.findElement(By.xpath("//td[contains(text(),'...
Hoagland asked 21/1, 2014 at 16:11
1
Solved
In Selenium Page Object model pattern web pages are represented as classes, various elements on the page are defined as variables in the class, and user interactions are implemented as methods in t...
Mayapple asked 27/2, 2018 at 5:14
1
Solved
The Story
We've been using Protractor framework extensively and have established a rather large test codebase. We've also been following the Page Object pattern to organize our tests.
Recently, we'...
Recrystallize asked 17/11, 2017 at 21:36
4
Solved
I am new to Page-Object model automation using selenium and java. I am using the Page Object model and have each page as a single class and the actions in that page as methods.
Should we write sepa...
Ethnarch asked 6/11, 2017 at 15:46
2
Solved
I went little fancy and wrote Selenium page-object with Java 8 streaming as mentioned in below code and got a review comment that my code is breaking Law of Demeter, since I am doing lot of operati...
Debacle asked 3/8, 2017 at 18:5
1
I have watched a video on youtube that suggest using screenplay pattern as an alternative to using the usual pageobjects. The only advantage I see is that the page object classes are not as big. Is...
Dishcloth asked 5/4, 2017 at 12:31
1
Solved
I am following Page Object Model to automate a flow in one application. In one of the module I have to assert Page Title and some more messages. As of now I am putting my Assertion code in the Page...
Gottlieb asked 25/3, 2017 at 13:39
1
Solved
I'm working on a cucumber, ruby, capybara, siteprism project and we're defining most UK variables in a siteprism page object.
Is there a way for me to use the siteprism variables that I create as...
Annihilation asked 14/2, 2017 at 21:29
1 Next >
© 2022 - 2024 — McMap. All rights reserved.