Questions tagged [selenium-java]

95 questions
0
votes
1 answer

Concatenation in xpath

The element that I want to find with Selenium contains a text with both quotes and double quotes. The text is: "It's a traditional Valentines Day present and no one should spare money for it" My auxilliary method: private String…
Kifsif
  • 3,477
  • 10
  • 36
  • 45
0
votes
2 answers

How can I get the HTML source of a WebElement in Selenium WebDriver using Java?

How can I retrieve the HTML page source using selenium java?
Thomas Martin
  • 666
  • 2
  • 6
  • 26
0
votes
0 answers

Response code 500. Message: unknown error: failed to write prefs file SELENIUM

I made a small bot on windows with selenium in java, I'm trying to export it on a linux vps with ubuntu installed. (I exported from Windows Chrome profile (default) to Linux Vps profile directory but it doesn't work) However, this function (which…
0
votes
1 answer

How to click download icon on the PDF opened in new tab using Selenium and Java

In my web application, I have to verify the PDF content. When I click the download link for the PDF, it opens a new tab with PDF opened and download icon to download the PDF(as shown in below screenshot). To compare and test my PDF I need to…
Divya
  • 15
  • 2
0
votes
1 answer

java.lang.module.FindException: Module processed.jcommander not found, required by org.seleniumhq.selenium.remote_driver error using Selenium Java

I am trying to run selenium script with java language but facing the following error: Error occurred during initialization of boot layer java.lang.module.FindException: Module processed.jcommander not found, required by…
0
votes
2 answers

How to locate either of two similar

elements inside a

I cannot locate err_message elements for email and password. I'm getting an error as: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"body > div:nth-child(1) >…
0
votes
1 answer

Check for Click of element then wait until element is disabled and has a specific text

I currently am working with a java/selenium project (written by another dev) where we loop through and excel sheet for the elements and their attributes and perform an action based on the condition (click, mousehover, etc). There is one button…
wheelerlc64
  • 435
  • 2
  • 5
  • 17
0
votes
1 answer

Selenium-Java: Code crashes if no element is found

I cannot seem to find a solution on this. This line of code seems to crash if it cannot find it. Sometimes it is there and sometimes it is not: Integer dynamicElement = myDriver.findElements(By.xpath("//iframe[@title='CAPTCHA']")).size(); I then…
0
votes
1 answer

Find text from tags

I have the following html code from which I want to get the text: Nothing entered.
0
votes
1 answer

get items in radio buttons

I have this html code:
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
0 answers

Find selectors of a specific element

I am trying to get a list of all the selectors of a specific element using Selenium for Java. What I want is to find a way to get all the possible selectors that the element has and save them in a list so I can call them later on and use them. I…
MoominPapa
  • 11
  • 1
0
votes
1 answer

Running Selenium-java automation within gitpod.io

New to SO & test automation & selenium. I got introduced to gitpod while attempting https://www.lambdatest.com/certifications/. I'm stuck trying to run the below simple code snippet in side Gitpod. package project.maven.selenium; import…
0
votes
0 answers

Hi guys i want to automate gmail OTP Verification password using selenium Automation Utility

This is the error i received I expect Gmail otp automation using automation utilities . but some error are shown like EmailUtils refers to the missing type Store
0
votes
2 answers

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 111 error with Selenium

I am sure that my tests are working correctly. When I run the code I got the error in terminal like, Scenario: User adds new quick work order to employee from website # src/test/java/Features/5NewQuickJobOrder.feature:12 Starting ChromeDriver…