Questions tagged [selenium-java]
95 questions
0
votes
0 answers
How to login/signup with Google using only oauth2 and Google API
In my project I need to test the user login via Google, but I can't solve the problem "This browser or app may not be secure" when I enter the email.
The test steps are simple:
I click on the Google option in the login screen
The Google pop-up…

Maks Kosakovskyy
- 9
- 1
0
votes
1 answer
java.lang.NoSuchMethodError: com.google.common.collect.ImmutableMap.of(Ljava/lang/Object;Ljava error while opening browser with Selenium Java
I am getting this error while executing program in Eclipse.
I am trying to open fb using selenium.
Code trials:
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See…
0
votes
2 answers
How to send file within input tag using Selenium and Python
How do I send a file link to load on the page using selenium?
Does not work:
WebDriverWait(navegador,…
0
votes
1 answer
Exception in thread "main" org.openqa.selenium.ElementNotInteractableException: element not interactable error using Selenium Java with Edge WebDriver
Code trials:
import java.time.Duration;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;
import…

user18815229
- 1
- 2
0
votes
1 answer
Get value of aggregate xpath function in Selenium Java
I'm trying to get the index of a element based on the contents of its elements in Selenium using xpath.
String xpath = "count(//tr[td[text()='Column Value A'] and td[text()='Column Value B']]/preceding-sibling::*)"
WebElement count =…

Dili
- 556
- 1
- 5
- 14
0
votes
0 answers
Why edgedriver is crashed while chromedriver / firefoxdriver are working fine?
Why edgedriver is crashed while chromedriver / firefoxdriver are working fine?
Here are the error message
Only local connections are allowed.
Please see https://aka.ms/WebDriverSecurity for suggestions on keeping Microsoft Edge WebDriver…
0
votes
2 answers
How can I click a floating advertisement?
I'm trying to move to a different page (click 'my account'), and a floating advertisement appears:
advertisement
I tried to click on it, and can't find the "Close" element.
Found that it might related to frames, but still not works.
My Code:
public…

Guy
- 11
- 5
0
votes
1 answer
ElementNotInteractableException: element not interactable in Selenium Java
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class E2E {
public static void main(String[] args) throws InterruptedException {
…

Nambi Rajan
- 5
- 2
0
votes
2 answers
Adding a Thread.sleep in my Selenium scripts is breaking the execution
It's a simple Selenium script where I am launching a URL and performing a couple of Click actions.
When I put a Thread.sleep(2000) between any of these few steps, execution breaks and I get an exception as shown below.
Dec 26, 2022 3:55:35 PM…

Vinay Sagar
- 21
- 3
- 9
0
votes
1 answer
org.openqa.selenium.SessionNotCreatedException: Message: Could not start a new session. Response code 500 error using Appium Java
I am still very new to UI test automation.
When I run the code up to line 27 ("String session ID..."), my APK starts on the emulator and my Appium server also runs smoothly.
Now when I want to run a Simple UI test, I get the following error…

TraFFy
- 3
- 3
0
votes
1 answer
getWindowHandles not working properly with latest edge browser version
I am working on an application which supports only Edge Browser.
The login functionality works as follows -
On the login screen, when username and password values are provided and login button is clicked, a new browser window opens with an active…

Akshay Kane
- 161
- 1
- 2
- 4
0
votes
1 answer
Selenium, Java, Element is not interactable, radio button
So I need to test website pigu.lt. I need to change my personal data. Here is my code:
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import…
0
votes
1 answer
Continue button is clicked but does not navigate to the NEXT step on the same page in selenium java
I'm trying to automate a site but stuck at the point where I need to complete the onboarding process of the user account.
So the problem is I have to add a user and to add the user I have to go through few steps, I have successfully added the user…
0
votes
1 answer
Why Selenium is inserting the inputs on the previous page when it should hit the link and insert input on the next page?
I am using Selenium with Java, when I am trying to hit "forgot password" on the page I am testing, Selenium is inserting the inputs on the previous page and then going to the next page:
…

Justyna
- 1
- 2
0
votes
0 answers
Java selenium - how to run a developer UI function
One of my developers has written a function that I can manually run by accessing the browsers console and typing the name of the method. Calling the method populates the application with test data.
I want to call this function from my Java selenium…

Andy Short
- 1
- 1