I'm so confusing with this problem. So anyone who has taken the same trouble like this, please kindly inform me.
[Facebook\WebDriver\Exception\UnknownServerException]
Error communicating with the remote browser. It may have died.
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03
:16'
System info: host: 'DESKTOP-KLV8HD0', ip: '192.168.2.168', os.name: 'Window
s 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_144'
Driver info: driver.version: RemoteWebDriver
How to resolve ? Here is the description of application that I used:
Google Chrome (62.0.3202.75) -> Updated new version for now
Chrome Driver (2.9) -> Updated by http://chromedriver.storage.googleapis.com/index.html (I thought 2.9 version is newer version)
selenium-server-standalone-2.47.1
Related
I don't know exactly how to replicate this error, but I do a lot of screenshots of the pages with WebDriver. Sometimes, suddenly I get this exception:
org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:9958
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '*******-*******', ip: '***.***.*.**', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.1'
Driver info: driver.version: ExtendedWebDriver
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:92)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.getScreenshotAs(RemoteWebElement.java:392)
...
I don't quit/close the driver before that happens, and previous commands right before getScreenshotAs work as expected. It only happens with getScreenshotAs command. Never had this problem with any other. It's very rare though. I had this error maybe 20-30 in total. For example I run tests all night, then in 3 nights I get this error once.
Is this a known issue? I'm using ChromeDriver most of the times.
I didn't specify any related code, because it happens regardless. I use stock version of ChromeDriver and selenium java library both version 3.141.59.
I am not able to launch the Notepad.exe via windows application driver with selenium and Appium
Below are the versions of all
**Appium** : 1.15.1
**Selenium Standalone** : 3.141.59
**Java Client** : 7.2.0
I am starting Windows application driver server like this WinAppDriver.exe 4727.
I have tried this using testng and junit both,but getting the same error again and again.
Error Message is below :
org.openqa.selenium.WebDriverException: It is impossible to create a
new session because 'createSession' which takes HttpClient,
InputStream and long was not found or it is not accessible Build info:
version: '3.12.0', revision: '7c6e0b3', time:
'2018-05-08T14:04:26.12Z' System info: host: 'DESKTOP-0TL6S7C', ip:
'172.18.2.139', os.name: 'Windows 10', os.arch: 'amd64', os.version:
'10.0', java.version: '1.8.0_221' Driver info: driver.version:
WindowsDriver
You mentioned in the question about using Selenium Standalone v3.141.59 but as per the error trace logs:
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
Which is almost 2 years old.
Upgrading your build with Selenium Standalone v3.141.59 will solve the issue.
I am getting this error and I have checked the documentation and even the basic program on the documentation page is giving this error.
chromedriver : 2.44
chrome version : 74
org.openqa.selenium.remote.UnreachableBrowserException: Could not
start a new session. Possible causes are invalid address of the remote
server or browser start-up failure.
Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27
09:10:26'
System info: host: 'HIDINGACTUALHOST', ip: '10.10.10.10', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0',
java.version: '1.8.0_211'
Driver info: driver.version: Driver
As you have mentioned you are using chrome driver 2.44 which is only supported chrome v69-v71.
You need to download chrome driver 74 for chrome v74
Note : You can see all the details related chrome driver here
I am using mac mojave 10.14.3, JDK 1.8, Serenity core 2.0.40 (latest) to develop my test cases. They all run perfectly well either with Chrome ver. 73(100% of time) or Firefox ver. 65.0(99% of time) on my local mac system.
Our Jenkins is running on Redhat linux with no GUI. We installed Firefox browser( Firefox version 60.5.0 probably the latest available) since Chrome is not supported/ unavailable for RH Linux. When I merged code and ask my admin to run the git branch on Jenkins, I always get errors.
I have these in my project code itself:
Selenium-java :3.141.59
Selenium-api: 3.141.59
Selenium-server: 3.141.59
geckodriver:0.24.0
chromedriver:2.45.615355
Today after every test running 100% pass on my local Mac system, ran on Jenkins(RH Linux box) I am getting this error (ran 2 times).
net.thucydides.core.webdriver.UnsupportedDriverException: Could not
instantiate class org.openqa.selenium.firefox.FirefoxDriver at
net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:154)
Caused by: net.thucydides.core.webdriver.UnsupportedDriverException:
Could not instantiate new WebDriver instance of type class
org.openqa.selenium.firefox.FirefoxDriver (Timed out waiting 45
seconds for Firefox to start. Build info: version: '3.141.59',
revision: 'e82be7d358', time: '2018-11-14T08:17:03'
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting
45 seconds for Firefox to start. Build info: version: '3.141.59',
revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host:
'xxx', ip: 'xxx', os.name: 'Linux', os.arch: 'amd64', os.version:
'3.10.0-957.5.1.el7.x86_64', java.version: '1.8.0_202' Driver info:
driver.version: FirefoxDriver
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting
45 seconds for Firefox to start. Build info: version: '3.141.59',
revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host:
'xxx', ip: 'xxx', os.name: 'Linux', os.arch: 'amd64', os.version:
'3.10.0-957.5.1.el7.x86_64', java.version: '1.8.0_202' Driver info:
driver.version: FirefoxDriver at
org.openqa.selenium.firefox.XpiDriverService.waitUntilAvailable(XpiDriverService.java:247)
*********POSSIBLY A BUG ?????**
According to this page, [Serenity BDD Book]https://serenity-bdd.github.io/theserenitybook/latest/web-testing-in-serenity.html
I prepared my config.properties file as ...
Chrome Browser Headless Testing
webdriver.driver=chrome
headless.mode = true
drivers.windows.webdriver.chrome.driver =
src/test/resources/webdriver/windows/chromedriver.exe
drivers.mac.webdriver.chrome.driver =
src/test/resources/webdriver/mac/chromedriver
drivers.linux.webdriver.chrome.driver =
src/test/resources/webdriver/linux/chromedriver
Firefox Browser Headless Testing
webdriver.driver=firefox
gecko.firefox.options = {"args": ["-headless"]}
drivers.mac.webdriver.gecko.driver =
src/test/resources/webdriver/mac/geckodriver
drivers.linux.webdriver.firefox.driver =
src/test/resources/webdriver/linux/geckodriver
But I was having problem as reported above UnsupportedDriverException:
I need to say, everything worked perfectly on my local Mac system, but NOT on RedHat Linux machine with Firefox browser 60.5 version (which should work with geckodriver 0.24.0)
But our Jenkins System Admin added the geckodriver to system path, then it WORKED !!!!!
Our Jenkins Server is running on RedHat Linux.
Selenium Code:
System.setProperty("webdriver.ie.driver","D:\\Automation\\Drivers\\IEDriverServer.exe");
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability("ignoreZoomSetting", true);
WebDriver driver = new InternetExplorerDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
Thread.sleep(3000);
driver.get("http://google.co.in");
Error :
Started InternetExplorerDriver server (64-bit)
3.8.0.0
Listening on port 25160
Only local connections are allowed
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException: session null does not exist (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
System info: host: 'TS-39', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_91'
The error says it all :
org.openqa.selenium.remote.SessionNotFoundException: session null does not exist
Reason
The main reason you are seeing SessionNotFoundException is because of the following reasons :
You are using the InternetExplorerDriver of version 3.8.0.0 which is apparent from the logs below and is properly initiated.
Started InternetExplorerDriver server (64-bit)
3.8.0.0
Listening on port 25160
Only local connections are allowed
But your Selenium version is 2.53.1 which is apparent from the logs below :
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
Moreover your JDK version is much older of version 1.8.0_91 which is apparent from the logs below :
System info: host: 'TS-39', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_91'
Solution
The simple solution would be :
Update your JDK version to current levels JDK (Java SE 9.0.1).
Update your Selenium-Java Client version to current levels v3.8.1.
Update your InternetExplorerDriver version to current levels v3.8.0.0.
Execute your Test.