Questions tagged [selenium-java]
The selenium-java tag has no usage guidance.
selenium-java
126
questions
0
votes
0
answers
19
views
Unable to excess the MetaMask Extension page using Selenium with Java
I'm automating a web application that requires authentication via MetaMask. To do this, I initialized the MetaMask extension using ChromeOptions. However, I'm encountering two issues:
When I launch ...
-1
votes
0
answers
20
views
While doing mobile automation testing I'm getting random error ( no such element found exception) in eclipse. When I run again it will not show error
I'm getting random error while executing the code in eclipse ide for mobile application testing. When I re run it will not show error. Sometimes I will get error next time error will not come.Why??
I'...
0
votes
1
answer
39
views
Error message--how to deconstruct and read
I'm new to coding, and I am not able to understand the error message in Eclipse,
Can you please tell me the steps to read an error message?
enter code herejuin 30, 2024 6:28:23 P.M. org.openqa....
0
votes
2
answers
61
views
Find Element by id with selenium java
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui....
1
vote
2
answers
47
views
find an element by Xpath using selenium Java
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui....
0
votes
1
answer
74
views
how to make my selenium code work ...open the browser and type google.com
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class ...
0
votes
0
answers
9
views
Null Pointer Exception on driver not getting intialised properly
Below is my base class, for initializing and managing a Selenium WebDriver instance. This class ensures that a single WebDriver instance is created and configured, which can be reused across different ...
0
votes
0
answers
43
views
Need to locate XPath for label element (which is not interactable in UI)
<div class="custom-control custom-checkbox" style="padding-left: 0px; margin-top: -4px !important;" xpath="1">
<input type="checkbox" autocomplete=&...
0
votes
1
answer
117
views
How to disable chrome notification popups while automating in selenium java?
How to disable chrome notification popups
I have tried that below code but its not working
ChromeOptions option = new ChromeOptions();
option.addArguments("--disable-...
0
votes
1
answer
102
views
Selenium Java - Script worked in Chrome devtools but not in Selenium JavascriptExecutor
Hello I'm trying to get this value from chrome console here but Selenium give me this error.
[main] ERROR io.qameta.allure.util.NamingUtils - Could not find parameter color
org.openqa.selenium....
0
votes
1
answer
65
views
How to use the returned value from java function (step) defined in step-definition file in feature file in Selenium
So I have Selenium code and I defined the step in step-definition file as, in here I am returning the value of appId which we are fetching from chrome console and then we need to use it in our feature ...
0
votes
1
answer
260
views
Selenium-java freezing and crashing my computer running multiple tests concurrently since Chrome 124 update
Apologies ahead of time, this is my first question here.
After Google Chrome updated to v124 on April 16th, I could not run my XML file of 64 tests without freezing and crashing my computer.
I have ...
0
votes
0
answers
356
views
ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency
ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.
at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:296)
at org....
0
votes
0
answers
29
views
Debug in eclipse showing class.class
enter image description hereDebugging in eclipse IDE showing class.class after apply breakpoint and run as Debug option, How to debug it properly?
I tried applying a breakpoint and run as debug option ...
0
votes
1
answer
96
views
HasAuthentication.register() works fine in Selenium 4 java on incognito mode with the username and password being passed , but not in normal mode
We recently migrated our selenium script from Selenium 3.141.x and JDK 1.8 to Selenium 4.18.1 and JFK 17.
In our web application, we use multiple role with each role has a seperate username and ...