I have written some test suites with robot framework using RIDE. As browser I have used Firefox and all test passed without any problem. But I have now to use Chrome as reference browser. But chrome isn't working. So I have done a very simple test case:
Open Browser http://google.com ${BROWSER}
If I enter "ff" as my ${BROWSER} variable I get a Firefox window with the google website displayed within it.
When I change the ${BROWSER} variable to chrome, I get a browser window which is black.
I get the following error in the log file:
WebDriverException: Message: session not created exception
from timeout: Timed out receiving message from renderer: 600.000
(Session info: chrome=55.0.2883.87)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64)
My configuration is:
Robot Framework 3.0
RIDE 1.5.2.1
Selenium2Library 1.7.4
Python 2.7.12
wx 2.8.12.1
Google Chrome 55
Chromedriver 2.27
Related
Chrome version running: 67.0.3396.79
Chromedriver version: 2.40.0 (https://www.npmjs.com/package/chromedriver)
When running the selenium webdriver tests in Chrome headless mode, getting error:
SessionNotCreatedError: session not created exception
from disconnected: unable to connect to renderer
(Session info: headless chrome=67.0.3396.79)
(Driver info: chromedriver=2.40.565383 (76257d1ab79276b2d53ee976b2c3e3b9f335cde7),platform=Linux 3.13.0-74-generic x86_64)
at Object.checkLegacyResponse (/home/jenkins/workspace/1-sunrise-e2e-tests-dev/node_modules/selenium-webdriver/lib/error.js:546:15)
Goodness me! Looks like the issue was with '--remote-debugging-port=9222', which I added to the headless Chrome options, removing that, fixed it.
I'm using protractor for my e2e tests.
Recently we updated to Chrome 71 and Webdriver 2.45 and now we constantly
get the error: "chrome not reachable" when running headless.
If we do not run headless our tests pass. Because headless tests are more consistent en faster I still want to use headless mode.
On chrome 70 and webdriver 2.44 we had no problems at all.
args: [
'--disable-gpu',
'--disable-impl-side-painting',
'--disable-gpu-sandbox',
'--disable-accelerated-2d-canvas',
'--disable-accelerated-jpeg-decoding',
'--disable-popup-blocking',
'--no-sandbox',
'--test-type=ui',
'--start-maximized',
'--window-size=1800,1000',
'--headless'
]
WebDriverError: chrome not reachable
(Session info: headless chrome=71.0.3578.80)
(Driver info: chromedriver=2.45.615355 (d5698f682d8b2742017df6c81e0bd8e6a3063189),platform=Mac OS X 10.14.1 x86_64)
Any thoughts?
The cause in our case is most likely to be this bug in either ChromeDriver or Chrome headless:
Unable to download a file when using in headless mode (selenium, chromedriver)
Some of our tests trigger file downloads, and it appears that ChromeDriver or Chrome headless freezes from that point onward, responding to any further requests with "chrome not reachable".
I am getting following error on last step of all my tests - because of that, all Test Cases are marked as failed.
Test Example:
*** Settings ***
Documentation TEST Close Browser
Library SeleniumLibrary
*** Test Cases ***
Google test
Open Browser about:blank chrome
Maximize Browser Window
Go To https://google.com
Close Browser
All steps executes correctly - even the last step closes browser, but it is throwing this error:
WebDriverException: Message: invalid session id
(Driver info: chromedriver=70.0.3538
.16(16ed95b41bb05e565b11fb66ac33c660b721f778)
,platform=Windows NT 10.0.17134 x86_64)
I am using latest chromedriver and all of my robotframework dependecies are also updated.
Can someone please help me get rid of that error?
I have a hand written coded ui test with about 120 test cases. It is working well with IE but I want to run in chrome (or in Edge). I have installed the Cross Browser Selenium components with the chromedriver. After the installation I have changed my code with BrowserWindow.CurrentBrowser = "chrome"; line.
Actually it launches the chrome (68.0.3440.75) but then it fails with this exception :
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: A
exception with a null response was thrown sending an HTTP request to
the remote WebDriver server for URL
http://localhost:4334/session/74ce571a635c376d0982b7f59dc31f3b/title.
The status of the exception was ConnectFailure, and the message was:
Unable to connect to the remote server.
The chromedriver is 2.25 which I know it's not compatible with my chrome, but If I upgrade the chromedriver with the latest version, then it launches and immediately closes itself.
Any suggestions?
Currently I'm using the follow stack:
1. Selenium Webdriver 3.0.1 (NodeJS API)
2. Mocha
3. Chromedriver 2.25.3
Often when I run my tests in Codeship (continuous integration) I get this error:
Uncaught WebDriverError: chrome not reachable
(Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 4.2.0-42-generic x86_64)
Note: This never happened running locally, only occurs when my tests start in codeship, and it's an intermittent error (sometimes it happens, sometimes not)
Screenshot error:
Any ideia how solve this?
Does codeship have chrome installed on their test server?
I'm guessing not. It might be better to run this against phantomjs (headless browser) instead for CI purposes.