Questions tagged [selenium-java]
95 questions
0
votes
0 answers
how to work with drop down in selenium whose locators are not working properly or unable to find locators of that element(textbox)
I m working on java selenium framework, I m working on Azure DevOps page, so when Click on Branch Dropdown, dropdown is coming with filter branch textbox. but when I m trying to Inspect the element but not getting proper locators for particular…

Rajat lilhare
- 7
- 4
0
votes
0 answers
getting this error nosuchelementexception : this element is locating but still idk why it is showing this exception.also help me with other exception
1.)Exception in thread "main" org.openqa.selenium.json.JsonException: java.lang.reflect.InvocationTargetException
2.)org.openqa.selenium.json.JsonException: Attempting to close incomplete json stream
Build info: version: '4.6.0', revision:…

H B
- 1
0
votes
1 answer
How to set browser language as English through selenium java
I am trying to run my test which is running on VM machine located at France through Azure Devops Pipeline.
Now I have applied all my locator strategy to find elements as per English language because in local browser, the language is English.
I tried…

Puneet Samaiya
- 11
- 1
0
votes
1 answer
How to use value element in xpath for selenium-java?
I used this xpath locator:
//table/following::div[text()='value']/preceding::span[@class='x-grid-checkcolumn'][1]"}
on the page i scripted as:
public void selectTestPlan(String value) {
String[] path =…

Mae
- 1
- 1
0
votes
1 answer
Selecting a value from a dropdown using sendKeys in Selenium java in IOS mobile device
I am using Selenium-Java (version: 4.3.0)
My web application has a simple dropdown with some values in it.
I am using below command to select the value in the dropdown
driver.findElement(By.id("phoneCountryCode")).sendKeys("USA");
I am…

Sweety
- 117
- 6
- 18
0
votes
1 answer
why my test are running in ipad mini mode or in tablet mode when run in devops azure pipeline but locally run in desktop mode
I am running automation code through selenium(latest version) / java(version-1.8.0_202") with Test NG .
Browser : chrome (latest version)
I am getting an issue like whenever I am running my test cases into local url / website runs on desktop version…

Puneet Samaiya
- 11
- 1
0
votes
1 answer
Selenium4 Dynamic Grid setup using different VM's
In the official documentation of selenium docker setup, I see a config.toml file which contains below info
[docker]
# Configs have a mapping between the Docker image to use and the capabilities that need to be matched to
# start a container with the…

HemanthRaja
- 1
- 1
0
votes
1 answer
Trying to get value from a java class returns null
I am trying to create a java file that will include all the IDs I'll need to call in my selenium with java project, but each time I call one of the values I get the message that it is null.
Cannot read field "username"…

Andreas Panteli
- 47
- 1
- 6
0
votes
3 answers
Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/remote/CommandPayload
New to Java here!
Trying to automate a sample app and I'm getting the above error. The appium and selenium-java versions are compatible. Tried adding another dependency selenium-remote-driver but the issue still persists.