120 questions
1
vote
2
answers
160
views
Chrome Headless mode resolution issue
I have been working with BDD Test automation since 3 years now that used Neodymium 4.1.5 version with Java 11. recently since 2 months I am facing issue with Chrome Headless mode execution where ...
0
votes
0
answers
51
views
Selenium Java - disable WebAuthn functionality in ChromeDriver
Is there a way to disable the WebAuthn-API in the ChromeDriver?
I tried to add an extension, but this did not work.
final ChromeOptions options = new ChromeOptions();
options.addArguments("--load-...
0
votes
1
answer
58
views
ChromeDriver.findElements() always takes 2 seconds when the target element is not found
I want to instantly determine if an element is present in the page. I wrote this simple Selenium Java code. The driver is an instance of ChromeDriver.
By by = By.id("non existent element");
...
1
vote
1
answer
135
views
Handle dialogs with Selenium 4 when BiDi is enabled
The BiDi introduced in Selenium 4 sounds interesting.
But when I turn it on with options.setCapability("webSocketUrl", true); I have trouble with Alert, Model, and Prompt. The old way driver....
0
votes
0
answers
48
views
Unable to get DevTools log in Selenium Grid
I'm using Selenium 4.26 with openJDK 11.0.2. I have a selenium grid with 10 machines each having chrome / firefox version 130 installed (which is in line with selenium 4.26 devtools support).
Problem:
...
0
votes
1
answer
149
views
Getting Exception / Error while running a Test using testNG
Getting below error if I try to run the test using testNG -
[RemoteTestNG] failed to get TestNG version from class: java.lang.IllegalArgumentException: invalid version "[WORKING]": non-...
1
vote
0
answers
43
views
Instagram Login Automation Testing with Selenium and Java
I'm new to software testing and below is the code for the automation testing. Although the automation testing steps are done in chrome correctly, the message is displayed as testing is failed. I run ...
0
votes
1
answer
26
views
How to constraint div container using dynamic value (example - Order ID generated) to verify the nested element value during runtime in Selenium Java?
OrderDetailPage
I have a webpage where Order generated gets displayed in list. I have constraint for the Order details section which has the newly generated Order ID and verify for the Order date and ...
0
votes
0
answers
361
views
Selenium Java: no such element: Unable to locate element:
Hi There I am getting "no such element: Unable to locate element error", it's been running successfully all of sudden I am seeing this issue nothing has changed from UI side same elements.I ...
0
votes
1
answer
65
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
150
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
138
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
470
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
62
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
2
answers
660
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-notifications");
option....
0
votes
1
answer
311
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
421
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
396
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
43
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
321
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 ...
2
votes
4
answers
4k
views
Unable launch chrome driver version 123.0.6312.59 using selenium java
I got the below error when running selenium in Chrome version 123.0.6312.59 :
Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
The ...
0
votes
3
answers
4k
views
Selenium:Chromedriver:Could not start a new session. Response code 500. Message: session not created: Chrome failed to start: exited normally
I'm new to selenium and stuck on launching URL in chrome.
selenium.chrome.ChromeDriver;
here's code snip
import java.time.Duration;
import org.openqa.selenium.WebDriver;
import org.openqa.
import io....
0
votes
0
answers
54
views
How to handle "This element is not interactable through selenium(automation) as it is not visible in UI." in Selenium Webdriver
I'm trying to close the modal that pops up when opening a netbanking website. But I'm unable to identify the modal. Selectors hub shows the above error.
<div class="popup" id="popup&...
0
votes
1
answer
46
views
One Particular TestNG Test is not running, not even showing that Test in console
Here is my code:
package Flows;
import java.io.IOException;
import java.time.Duration;
import java.util.concurrent.TimeUnit;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf....
0
votes
2
answers
225
views
Dynamic dropdown options selection in selenium java and React dropdown with no select class and no ids to select the options
How to select the required dropdown value when there is no id for the dropdown options and there is no select class and the order of the dropdown values changes each time. This is a react material ui ...
0
votes
1
answer
25
views
Web table is taking more time to load by the time another element is clicked how to handle the wait in selenium Java
Managing the delay in loading a web table before clicking another element
The web table exhibits a prolonged loading time, necessitating the implementation of a wait strategy in Selenium (Java) to ...
0
votes
0
answers
34
views
Why am I getting September 23 when the condition is to get out of the loop once it finds August
I'm trying to automate where I'll be choosing August 23 in the date. But what is happening is that instead of August it taking another click and it lands on September. Why is that? It seems that my ...
0
votes
1
answer
47
views
boolean isElementVisible = driver.findElement(By.id(“myHeaderDiv”)).isDisplayed(); is giving NoSuchElement Exception
Hi I am writing a script wherein I need to check if the element is present or not? However, when the element is not present then the following code is giving me org.openqa.selenium....
0
votes
2
answers
443
views
How to update Selenium JAVA test results in Azure DevOps?
I am working with azure devops, and using Java selenium to runs test scripts, I couldn't find a way to post my results in the test plan whether it fails or passed with screenshots.
I already have a ...
1
vote
1
answer
85
views
How to use locators of Selenium for tabs within Angular application
I am new to Selenium with Java.
As per the requirement I need to access a TAB within my Angular application.
<a _ngcontent-ng-c689374991="" data-val="Dreams" routerlink="/...
1
vote
0
answers
200
views
How to use custom chrome profile (Electron browser) with remote webdriver
I am using selenium grid where multiple laptops are connected as a node machine and we are using electron browser to launch the application. It was working fine but now it's broken cause browser ...
0
votes
1
answer
55
views
Microsoft Account SignIn button is not Working when I tetsted with Selnium and Java
enter image description here`public DDLogin_Page(WebDriver driver) {
this.driver = driver;
}
public void AccessLogin() throws IOException, InterruptedException {
WebElement oauth = driver.findElement(...
0
votes
0
answers
89
views
How to handle SSO in Selenium Java with cucumber framework
How to handle SSO in Selenium Java with cucumber framework. Can anybody tells me what is the process of doing it?
3
votes
1
answer
7k
views
This version of ChromeDriver only supports Chrome version 114 Current browser version is 117.0.5938.89
I am trying to execute a Java selenium test.
Expected outcome: Browser session is started and test steps are performed.
Current behavior: Browser session is not started with error:
org.openqa.selenium....
2
votes
2
answers
11k
views
Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
I got hit by this issue with setting up the webdrivers. I had to update my Chrome to 116.0.5845.97.
This is how my maven looks like :
<dependency>
<groupId>org.seleniumhq....
0
votes
0
answers
228
views
NoClassDefFoundError: org/openqa/selenium/AcceptedW3CCapabilityKeys after upgrade to selenium 4
java.lang.NoClassDefFoundError: org/openqa/selenium/AcceptedW3CCapabilityKeys at org.openqa.selenium.remote.RemoteWebDriver.lambda$checkNonW3CCapabilities
error after upgrading my selenium from 3.14 ...
9
votes
9
answers
57k
views
Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
OS : Windows server
Language : Java
Chrome version : 116.0.5845.97
Chrome driver version : 116.0.5845.96
OUTPUT :
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger ...
1
vote
1
answer
812
views
Selenium 4 with ChromeDriver crashing when running multiple drivers
When running the below simple example against Selenium 4.11, at some iteration in the loop the program will fail to get a new ChromeDriver instance with the following message:
Exception in thread &...
0
votes
1
answer
69
views
Button click is not clicking on it
The .click() is not doing the click action on the button. Howsoever I change the identifier with css, xpath it does not click it. I am not sure what is wrong and what am I missing. Any help is ...
0
votes
1
answer
251
views
Faliure message : NoSuchDriver Unable to obtain: Capabilities {browserName: MicrosoftEdge, ms:edgeOptions
While I'm trying to execute the program, the program is getting failed also the following is the failure message I'm getting and I'm unable to resolve this :
" WARNING: IOException running ...
1
vote
1
answer
126
views
Concatenate String with double quotes in Java
Now I have method, which will return me xpath value i.e.
public String xpathValue (String countryName){
return "//*[label="+countryName+"]"
}
And if I call it with Nigeria it will ...
0
votes
3
answers
488
views
Selenium Drag and Drop not working for Java
I need to perform a Drag and Drop using Selenium and Java. I used dragAndDrop() method in Action class for this. but it didn't work. From element is selected but its not moving to the To element. I ...
0
votes
1
answer
292
views
Can't connect with existing Chrome Session in Selenium Java
Please note that I have tried all the explanations available (mostly) and still not working.
The command I'm using to launch the browser session is as follows:
chrome --remote-debugging-port=9222 --...
0
votes
4
answers
194
views
I'm getting an error while hovering over the object and hence the automation script is failing
I have written a simple Selenium-based automation script for a login page. But I have a separate class for page objects and methods, another class for reusable components, and then the test class.
...
0
votes
0
answers
320
views
Script is failing from Jenkins due to difference in screen size - Chrome Browser
I am working on running Selenium(Serenity) scripts in Jenkins. Here, my browser window size which is 1920x1080 px resolution and chrome version is 114.0.5735.199. The script is working as expected in ...
0
votes
2
answers
340
views
Selenium program not running without static wait
There was another StackOverFlow question for which I had to write a program. My program was not working at all. The program is working fine when we debug it. It's failing at other times.
I assumed ...
0
votes
2
answers
169
views
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: console.error: JsonSchemaValidator.jsm:
When I execute a Selenium Script using Firefox, the Firefox opens up but it doesn't redirect to the URL. Below is the error which is displayed on the Eclipse Console:
org.openqa.selenium.firefox....
3
votes
1
answer
2k
views
What is the updated argument for Firefox browser to run test (Selenium Java) in headless mode?
I have tried to set the argument as options.addArguments("--headless"); but it's not working. Please note that I don't want to use setHeadless(Boolean) method since it's deprecated now.
I ...
0
votes
2
answers
992
views
Invalid session id when running selenium framework in parallel mode
I get the following when running my Selenium framework in parallel mode using TestNG.
org.openqa.selenium.NoSuchSessionException: invalid session id
The issue only happens in parallel mode and when ...
0
votes
2
answers
385
views
RestAssured Multipart - Concatenate multiple multiPart values into a single value
I am having multiple API tests which have different sets of multipart input values which vary dynamically,
I want to create 1 common function which can accept these varying multiple multipart into a ...