This question already has answers here:
Chrome Driver Error using Selenium: Unable to Discover Open Pages
(8 answers)
WebDriverException: unknown error: unable to discover open pages error with ChromeDriver 80.0.3987.106 and Chrome 80.0.3987.122
(2 answers)
selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open pages using ChromeDriver through Selenium
(1 answer)
Closed 10 days ago.
I am using the Selenium GEB for the Automation Testing using Groovy.
My Chrome Version updated to the Version 110.0.5481.78 (Official Build) (64-bit). So I Downloaded the latest Chrome Driver Version from official website. https://chromedriver.chromium.org/downloads
I have downloaded the version that Supports the Version 110.X.XXXX Now Once I Updated My chrome Driver started Crashing And I Could not find the Proper Solution to It so Finally I am posting Question.
Error
Caused by: org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System
Your Response I highly appreciated
Thank you.
Related
This question already has answers here:
Message: Unable to find a matching set of capabilities error using Selenium and GeckoDriver while loading on live server
(1 answer)
Unable to find a matching set of capabilities with selenium 3.4.3, firefox 54.0 and gecko driver 0.17
(2 answers)
Closed 2 years ago.
The version of WSL I am using is WSL2 and I am using Ubuntu for WSL.
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
Is the error that I get whenever I try to run the python file. Here is the code within the file:
from selenium import webdriver
url = "https://www.google.com"
driver = webdriver.Firefox()
driver.get(url)
I've tried this code outside of WSL, and it works. I can't get it to work on WSL and geckodriver is in my PATH.
This question already has answers here:
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
(37 answers)
Closed 2 years ago.
My current Browser version in 83.0.4103.61. I have updated Chrome driver to 83.0.4103.3900 from NuGet Package Manager. Getting error "Session not created: This version of ChromeDriver only supports Chrome version 81" even after updating driver. I am using Selenium WebDriver using C#.
Note: It works fine for new solutions.
Seems to be your machine does not have the latest chrome browser.
Either update the chrome browser or downgrade the chromedriver to 81.x.
Sometimes, when my script is run by jenkins i get an error:
HOOK-ERROR in after_step: TimeoutException: Message: timeout
(Session info: chrome=69.0.3497.92)
(Driver info: chromedriver=2.35.528139
(47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.4.0-128-generic x86_64)
i cannot reproduce this situation on my local machine. Do you have any idea how can i check and fix it?
This error message...
HOOK-ERROR in after_step: TimeoutException: Message: timeout
(Session info: chrome=69.0.3497.92)
(Driver info: chromedriver=2.35.528139
...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.
Your main issue is the incompatibility between the version of the binaries you are using as follows:
You are using chromedriver=2.35
Release Notes of chromedriver=2.35 clearly mentions the following :
Supports Chrome v62-64
You are using chrome=69.0
Release Notes of ChromeDriver v2.43 clearly mentions the following :
Supports Chrome v69-71
So there is a clear mismatch between the ChromeDriver v2.35 and the Chrome Browser v69.0
Solution
Upgrade JDK to recent levels JDK 8u191.
Upgrade Selenium to current levels Version 3.14.0.
Upgrade ChromeDriver to current ChromeDriver v2.42 level.
Keep Chrome version between Chrome v69-71 levels. (as per ChromeDriver v2.43 release notes)
Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
If your base Web Client version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Web Client.
Execute your #Test.
I have been using the COM interface provided by Internet Explorer but, since some sites have now moved on and don't support IE, I have been looking to substitute this with SeleniumBasic.
As this is completely new to me, I'm at the very basic level - I've downloaded the
Selenium Type Library (I've downloaded the Selenium library reference from Github, and referenced is in the module).
I've put in a very basic bit of code to test it out but I'm getting the following error:
Error number: 33
Error description:
SessionNotCreatedError session not created exception from unknown
error: Runtime.executionContextCreated has invalid 'context':
{"auxData":{"frameId":"AE85B634088DDFB4B8E7D65A145ADA0F","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=69.0.3497.100) (Driver info:
chromedriver=2.21.371459
(36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 10.0
x86_64)
The code is;
Sub TestCode()
Dim driver as New Selenium.Chrome
driver.get "www.Google.com"
End Sub
I've tried this with firefox and Edge browsers too but am getting the same issues - any suggestions on what might be going wrong?
This error message...
SessionNotCreatedError session not created exception from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"AE85B634088DDFB4B8E7D65A145ADA0F","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=69.0.3497.100)
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 10.0 x86_64)
...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.
Your main issue is the incompatibility between the version of the binaries you are using as follows:
You are using chromedriver=2.21
Release Notes of chromedriver=2.21 clearly mentions the following :
Supports Chrome v46-50
You are using chrome=69.0
Release Notes of ChromeDriver v2.42 clearly mentions the following :
Supports Chrome v68-70
So there is a clear mismatch between ChromeDriver v2.21 and the Chrome Browser v69.0
Solution
Upgrade Selenium to current levels Version 3.14.0.
Upgrade ChromeDriver to current ChromeDriver v2.42 level.
Keep Chrome version between Chrome v68-70 levels. (as per ChromeDriver v2.42 release notes)
Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
Execute your #Test.
Update A
As per florentbr/SeleniumBasic the last version of SeleniumBasic (A Selenium based browser automation framework for VB.Net, Visual Basic Applications and VBScript) seems to be Release v2.0.9.0 only.
As per the CHANGELOG of Release v2.0.9.0 the underlying components are:
Firefox driver version 2.52.0
IE driver version 2.52.1
Update B
If you intend to use GeckoDriver with Firefox you can following the matrix below:
This question already has answers here:
Why Firefox requires GeckoDriver?
(4 answers)
Closed 5 years ago.
While running selenium test in eclipse I am getting below error message
"Exception in thread "main" java.lang.IllegalStateException: The path
to the driver executable must be set by the webdriver.gecko.driver
system property; for more information, see
https://github.com/mozilla/geckodriver. The latest version can be
downloaded from https://github.com/mozilla/geckodriver/releases at
com.google.common.base.Preconditions.checkState(Preconditions.java:754)
at
org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:124)
at
org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:40)
at
org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:114)
at
org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:329)
at
org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:150)
at
org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120)
at
org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:98)
at AutomationFramework.FirstTestcase.main(FirstTestcase.java:9)
Can anyone suggest me how to fix it?
Your code will work for old version of Selenium. After Selenium 3 you need to use gecko driver to work with Firefox. Download gecko driver and add below line in your code.
System.setProperty("webdriver.gecko.driver","G:\\Selenium\\Firefox driver\\geckodriver.exe");//give location accordingly for your gecko driver
WebDriver driver = new FirefoxDriver();
For more info go through this post