I like to test my site in a lot of threads. But when I trying to do that, I see one problem. All motions when I like are happening in last opened window. So, the first window just stuck in background. I really don’t understand why it happens. You can see it here. After that the code has run, the
Tag: selenium-webdriver
Selenium: How do I check if an element is on a page without use implicitlyWait?
How do I check if an element is on a page without use function implicitlyWait? I may check that element is on page with use implicitlyWait: Is there any analogue of the solution? Answer You are already using findElements, Note that findElements will not throw any error even the passed locators is not available in HTMLDOM. If it finds, it
Integrating regex in selenium xpath?
Hello I just start using selenium with java framework : I have this case : I need to count all the check boxes in my view which contains multiple pages (1,2,3) and in each web page i have a bunch of check boxes with the same xpath with different number see the exemple below: xpath fir the second checkbox in
I am getting null pointer exception in page object class why I am getting NPE
I am getting NPE in user() method in this line return driver.findElement(username); When I run testcase when I call lp.user() geeting NPE error in page object class java.lang.NullPointerException: Cannot invoke “org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)” because “this.driver” is null at pageObjects.LoginPage.user(LoginPage.java:31) at Admission.homePage.testCase(homePage.java:52) Answer You need to initializeDriver() before creating LoginPage object:
Remove Bot-Identyfing Features from Firefox WebDriver Source Code?
One of the ways WebDriver identifies itself as a bot to external websites is by setting the webdriver-active flag to true. A user on SO suggested that it is possible modify Chrome Driver source code to remove all bot-identifying attributes (see this and this response). Is it possible to achieve a similar outcome w/ Firefox by modifying the source code
How do I select option from a Select Listbox dynamically during runtime ? Selenium_Java
I have a select listBox of around 10 elements containing account no. with balance. These balances change sometimes they go to zero some time they have some amount, what I want to do is select the option at runtime which has a positive account balance. The format of the text in LB is : Acc no. (INR 12345 :SomeText) Thanks
sendKeys not working on textarea with area-label and getting element not interactable exception
Firstly apologies for such a bad title, kindly suggest a good title. Here are the details on my issue that I am facing: Website: https://www.desmos.com/calculator/lzidy3m70r Steps: Click on + button on top left Select images and upload any image update values in fields center, width and height Issue: Not able to interact with any of the text areas of center,
StaleElement exception error when asserting data in a table
I am trying to add data to a table and then asserting that data is added by collecting table data in a list but every time it throws me a StaleElement exception error, now I guess it is happening because the list is getting refreshed, so I am not sure how do I handle it. Here is my implementation I
Getting java.lang.ExceptionInInitializerError when executing my Test
Here is my code for finding WebElement for all the records in a table My getter method to access the private WebElement Here is the function I’ve created to collect all the records in the table in a List Here is my test execution Now I’m getting an error java.lang.ExceptionInInitializerError when I’m creating an object jobCategories. Is it an issue
Cannot access numeric value of cell from a String cell
I am trying to read an excel file and execute my test case accordingly, now the error I am getting is java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell Here is my implementation of the code: You might notice that I have user String.valueOf(); but to no avail. And here is my code for method call: My imports