I am trying to ‘accept the cookies’ on the homepage, but my code doesn’t work. I tried to get the new window handles and then identify the subsequent Xpath for the frame and Accept button but it never work. Answer You no need to switch frame in your case, because there is no frame present in your page. Just inspect
Tag: selenium
My Chrome version is Version 84.0.4147.105 but available ChromeDriver version is Version 84.0.4147.30 causing an error to launch chrome using Selenium
My chrome version is Version 84.0.4147.105 but available chrome version is Version 84.0.4147.30 its causing an error to launch chrome through selenium what should i do apart from downgrading the chrome version . Answer The latest stable ChromeDriver is ChromeDriver 84.0.4147.30. This version of ChromeDriver is well tested for all the minor versions of google-chrome Version 84.x.y.z. Conclusion Irespective of
WinAppDriver based automation stops working on windows 10 VM when I close the RDP connection
I am doing all the work remotely on my Windows 10 Virtual Machine (Via RDP). Whenever I am logged in to the server, I can see my automation running fine but when I close my RDP connection, the WinAppDriver can’t find the elements on the desktop application and thus it stops working. How can I solve it? Please let me
Unable to run Selenium test with Chromedriver on Mac
Whenever I am trying to run my Java-Selenium tests locally on Mac through Chromedriver, its not invoking the browser and is getting this error as below. I am getting back to this code in couple of months time and last time could run without any issues, and in the meantime my project has not gone through any code change. Error
org.openqa.selenium.ElementClickInterceptedException: element click intercepted error using Selenium and Java in headless mode
I have a project that I am working on with java and selenium. the test work OK in UI mode. However in headless mode I get this error how can I resolve this issue (working in UI mode). this is my code why in selenium there is no operation to move to the element and break all layers. this is
How to right click on a link and open the link in a new tab using Selenium through Java
I am trying to right click on the Forgotten account? link on the Facebook login page using Selenium but it is not working. I am trying to send.Keys() after contextClick() but the key press is …
How do I stop selenium automation if 20% or 1st 20 test cases test methods are failed?
I have 100 test cases, if 20% or first 20 test cases all fail how can I stop the execution ? Already have testng ITestResult where should I break the build? Where can I break this suite if Result, “FAIL is over 20 ? DO i require to create new class or can I add in same below? Answer You
Selenium Edge WebDriver (Chromium) – session not created: No matching capabilities found
I’m trying to run a Selenium test with Java and Edge driver (based on Chromium). The version of my Edge Dev installed on Windows 10 is 83.0.478.37 (Official build dev 64-bit): Selenium Version : 3.141.59 I’m using webdrivermanager setup for this and used the example provided here. I tried many options it includes without using webdriver manager but still gives
How do you compile a java program from the command line while using selenium in the source code?
I am working on a final project for my Computer Science course. I built an program using the Selenium library to automate the process of creating a github repo and linking it to a local folder. I am only able to run the program inside of VS Code using their “Run” feature. I want to be able to run this
Is it a bug in Selenium documentation?
Here is the snippet from the new Selenium doc on Waits: When I paste this code, it gives me an error on the Duration: The constructor WebDriverWait(WebDriver, Duration) is undefined It still works with the following syntax: Is it the documentation bug? Answer As I wrote in the original question, the code above still works. I guess, as @Fenio assumed,