Questions tagged [selenium-java]
95 questions
1
vote
1 answer
Are there potential drawbacks of ultra short polling duration in Fluent Wait in Selenium?
When using FluentWait in Selenium, it is possible to configure the polling duration of the FluentWait
As far as I know, that is the frequency of checking if the element exists, for example
So, if the timeout is 3 seconds, and the polling duration…

Bozidar Kostic
- 13
- 4
1
vote
2 answers
Issue with Drag and Drop command using Actions class in Selenium WebDriver using Java
Code trials:
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import…

user17346899
- 33
- 5
1
vote
2 answers
Selenium - Java - Actions Class - Click not working
When I use the following code for click or double click using Actions class, it seems like mouse click triggers but is not released. Apparently, the button is highlighted, but click doesn't perform completely.
Click Code:
WebElement…

Your Storyteller
- 33
- 7
1
vote
0 answers
Java Selenium executing a Javascript that deletes the browser IndexedDB Inbox
I have created a Java selenium automated test suite that tests a progressive web app. I want to delete the browser IndexDB in one of my tests. To do this I planned to create a 'JavascriptExecutor' onject in my Java Selenium test class. This is my…

ED209
- 588
- 1
- 9
- 26
1
vote
3 answers
Edge: Unable to handle Sync Your Profile dialogue using selenium JAVA
I have an automation test suite that runs perfectly on Chrome. Now I want to extend my test runs on other browsers EDGE, FF.
Problem: When I try to launch EDGE browser I'm getting dialogue 'Sync Your Profile'. I tried with different edge options but…

Automation User
- 31
- 2
1
vote
0 answers
Unable to establish websocket connection error getting Firefox console logs using Selenium for Java
In my Selenium tests using Firefox I always get an error when I try to get the browser console logs. Same code works fine for Chrome and Edge.
For the tests I am using:
Firefox 100.0
geckodriver 0.31
Selenium 4.1.4
public static void…

Lucas
- 100
- 7
1
vote
1 answer
Click on a first table row
I have the following Angular code:
1
vote
1 answer
XPath expression fails to return correct elements in Selenium (Java)
I am trying to collect a list of products in Amazon. Specifically, I am going to the following URL: https://www.amazon.com/dp/[ASIN]/ref=olp-opf-redir?aod=1&ie=UTF8&condition=ALL where [ASIN] is the unique Amazon Standard Identification Number for…

hfontanez
- 5,774
- 2
- 25
- 37
0
votes
0 answers
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 to Selenium 4.4
Step…

Pathfinder
- 13
- 3
0
votes
0 answers
Allure reports with TestNG issue: allureTestNG could not be instantiated
I am restricted from using internet and hence cannot use Maven. I am working on TestNG by placing all the required dependency jars manually into IntelliJ. When running testng.xml file, I get the error:
rg.testng.ITestNGListener: Provider…
0
votes
0 answers
I am trying to take screenshot after every verification method and after that all screenshot should save in final test result (.index)
In java selenium i have to Take multiple screenshot and save all them in final result
I have tried calling screenshot method like take screenshot and save into specific folder also i have tried ExtentReports classes but project not allowed me to add…
0
votes
1 answer
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 appreciated.
my html looks like this.
0
votes
1 answer
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 command…
0
votes
3 answers
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 checked the Xpath of the To element. No problem…

Sasith Bandara
- 1
- 1
0
votes
1 answer
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 --user-data-dir="D:\SQA\Browser_data\ChromeData"
And…

Aliul Islam Abir
- 15
- 4