All Questions
Tagged with selenium-webdriver java
35,667
questions
0
votes
0
answers
18
views
How to fix NullPointerException because "this.driver" is null on Java Selenium [closed]
I have these 2 basic classes to run apply the POM Pattern with Selenium in Java, but I have the following error
enter image description here
enter image description here
I'm expecting just to locate ...
-2
votes
1
answer
43
views
Azure Repo Setup for Nexus Repo
We have our own company framework for testing and all jar are stored in nexus repo.
Whenever running my automation framework,all required jars are getting downloaded from nexus repo via pom dependancy....
0
votes
1
answer
31
views
Im having hard time with Safari Webdriver and clicking on a web element
Im struggling with Safari Webdriver and clicking elements on a page. To start I have up-2-date selenium version as stated on apples website.
For context I'm running selenium on a mac machine with ...
0
votes
1
answer
11
views
How to separate retires in Allure Reports to separate tests?
In my project while triggering a test to run, we pass through variables as system properties e.g.:
public static String USER = System.getProperty("user", "ADMIN_HQ");
This is so ...
-1
votes
0
answers
30
views
Java: Is there anyway that I can use an image as a locator in selenium?
I'm facing a problem that some of my programs are working on canvas and the item's display does not good (Not static) ,in this case , I cannot using the canvas selenium method. Is there anyway that I ...
-1
votes
0
answers
20
views
I am not able to build my Java Selenium project due to a few errors, which I am not able to resolve [closed]
I am getting errors like my steps do not have matching glue code. I am not able to resolve the error. Could some one please help me remove the errors and build the project successfully?
I tried ...
-1
votes
0
answers
25
views
Upload file without the input[@type='file'] on MacOS
I’m having trouble finding a way to upload a file or picture because there is no element on the page. I’ve tried using the Robot class, JavaScript injection, and even Sikuli, but nothing seems to ...
0
votes
0
answers
53
views
Cucumber maven <rerunFailingTestsCount>1</rerunFailingTestsCount> does not rerun failed tests and does not create report file
could you tell me what are required dependencies to make cucumber reporting plugin working when I want to rerun failed tests ? I am using in my project the following dependencies. Could you tell me ...
0
votes
1
answer
39
views
Get result with Xpath Expression to be used in java code
I'm unsure why I am not receiving a result for the xpath expression in the image below. I am trying to select the <circle> tag to execute a test step in my Selenium Java test script. I have ...
-1
votes
1
answer
41
views
Selenium org.openqa.selenium.InvalidCookieDomainException: invalid cookie domain
I'm using selenium-java to launch a Google Chrome window and load a website. I would like to add cookies to the session, but I get an exception: org.openqa.selenium.InvalidCookieDomainException
The ...
-1
votes
2
answers
62
views
How to assign a value obtained by Stream to String variable in Java? [duplicate]
This is related to automation testing using Selenium and Java.
I am getting all elements of a column in a List<WebElement>.
After this, I want to get the first element of the above list using ...
0
votes
0
answers
33
views
An internal error occurred during: "Building" org.eclipse.jdt.launching.JavaRuntime.getProvidedVMPackages
enter image description here - Image
Eclipse is showing internal error as below:
An internal error occurred during: "Building".
'java.util.Set org.eclipse.jdt.launching.JavaRuntime....
1
vote
0
answers
27
views
What option I can set for network request blocking in Safari using Selenium?
There is an option that I can set to avoid requests from specific url in Selenium (Java) for Chrome browser
ChromeOptions options = new ChromeOptions();
options.addArguments("--host-resolver-...
-1
votes
0
answers
21
views
How to run selenium or similar tool in a VPS without any pre-installed browser using JAVA?
I have a java project which uses selenium to get cookies after the user gets authenticated in frontend:
public class SeleniumAuthenticator {
private WebDriver driver;
public ...
0
votes
0
answers
16
views
Appium: Android: Unable to Scroll towards the selected accessibility id
Using:
driver.findElement(new AppiumBy.ByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(text(\"See More\"));"));
and Getting and Error:
...