Questions tagged [selenium-java]
95 questions
6
votes
6 answers
org.openqa.selenium.remote.http.ConnectionFailedException: Unable to establish websocket connection Selenium ChromeDriver and Chrome v111
I tried to invoke the website using Selenium and Chrome browser v111.
The browser is opening but the website is not invoking.
It is working properly but after updating chrome "Version 111.0.5563.65 (Official Build) (64-bit)" I'm getting this…

JBM
- 153
- 1
- 1
- 8
2
votes
8 answers
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 implementation
SLF4J: See…

Hrushikesh Shewale
- 21
- 1
- 2
2
votes
1 answer
Started getting unknown error: Chrome failed to start: exited normally. (unknown error: DevToolsActivePort file doesn't exist)
Chrome version is recently upgraded to 108.x version and all of sudden my scripts have started failing and getting below exception:
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited normally.
(unknown error:…

Shishir Jain
- 21
- 1
2
votes
2 answers
How to import a generic selenium devtool network version
Im using selenium-java 4.6.0 and Im capturing network traffic.When I try to import the selenium class for 'Network', I get several options…

matias
- 57
- 5
2
votes
0 answers
Unable to Zoom Out of screen using Selenium WebDriver
Am trying to zoom out of my current page as some of the monitors are quite small there our application is not loading properly.
Selenium 3.141.59
Java 1.8
This is my sample code:
public class ScreenResolutionCheck {
static WebDriver driver =…

Ahamed Abdul Rahman
- 512
- 1
- 5
- 18
2
votes
0 answers
Clicking button doesn't trigger event using selenium(Chrome Only). Nothing happens on click, though element found and clickable
I'm trying to automate a customer journey in our application using selenium java. I have a problem with click() method (Chrome browser only).
Scenario: User adds items to cart, select payment method Google Pay and click on proceed to Payment button.…

Automation User
- 31
- 2
2
votes
0 answers
Selenium doesn't navigate text with shortcuts like CMD+UP or ALT+UP
On any text form, I can use CMD+UP to navigate at the very top or OPTION+UP to navigate to the start of the paragraph. That works in any browser on macOS.
Why it does not work from Selenium?
I tried this in Java and an equivalent in Typescript -
new…

Alex
- 21
- 2
1
vote
2 answers
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 :
org.seleniumhq.selenium
…

Sunny
- 89
- 1
- 9
1
vote
1 answer
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 "main"…

johnd
- 516
- 5
- 9
1
vote
1 answer
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 return me value like this:
//*[@label=Nigeria]
But I want value…
1
vote
1 answer
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 have a working Chrome in headless with the following…

Aliul Islam Abir
- 15
- 4
1
vote
2 answers
I am unable to check whether the dropdown contains title "Job Titles"
I was testing this website using selenium in java
https://opensource-demo.orangehrmlive.com/
Im stuck in this part of the testing , where i have to check whether the dropdown contains title "Job Titles"
Actions action1 = new…

FaThima Hussain
- 29
- 1
- 7
1
vote
2 answers
Selenium-Java Generate a single Extent PDF Report for Test Execution done on Multiple browsers (Edge, Chrome, Firefox) in single run
I am looking to generate a single Extent PDF Report for Test Execution done on Multiple browsers (Edge, Chrome, Firefox) in a single run.
I am getting the below error when the execution finishes:
SEVERE: An exception…

Automation Engr
- 444
- 2
- 4
- 26
1
vote
1 answer
Webdriverwait in selenium java
WebDriver driver = new ChromeDriver();
WebDriverWait w =new WebDriverWait(driver,5);
I am getting an error for the second line. the error is "The constructor WebDriverWait(WebDriver,int) is undefined"
Can someone please help me out here?
I…

Andromeda
- 11
- 1