Selenium Chrome Driver

1,674 views
Skip to first unread message

andrew

unread,
Feb 29, 2012, 10:20:31 AM2/29/12
to webdriver
I am having problems with the Selenium chrome driver on my build pc.
I am getting periodic failures. When I look at the screen of the
build pc I see a chrome window opened with an empty tab. The url is
set to about:blank. The associated chrome driver log file is

[0.001][INFO]: ChromeDriver 18.0.1022.0 C:\Projects\Community
\Selenium\Chromium\chromedriver.exe
[0.397][FINE]: Initializing session with capabilities {

"browserName": "chrome",

"chrome.switches": [ ],

"chromeOptions": {

"args": [ ],

"binary": "",

"extensions": [ ]

},

"javascriptEnabled": true,

"platform": "WINDOWS",

"version": ""

}


[0.397][INFO]: Launching chrome: "C:\Documents and Settings
\Administrator\Local Settings\Application Data\Google\Chrome
\Application\chrome.exe" --disable-hang-monitor --disable-prompt-on-
repost --dom-automation --full-memory-crash-report --no-default-
browser-check --no-first-run --ignore-certificate-errors --
homepage=about:blank
[1.002][INFO]: Connected to Chrome successfully. Version:
17.0.963.56
[1.055][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2)
[1.055][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"acceptSslCerts": false,

"applicationCacheEnabled": false,

"browserConnectionEnabled": false,

"browserName": "chrome",

"chrome.chromedriverVersion": "18.0.1022.0",

"chrome.nativeEvents": false,

"cssSelectorsEnabled": true,

"databaseEnabled": false,

"handlesAlerts": true,

"javascriptEnabled": true,

"locationContextEnabled": false,

"nativeEvents": true,

"platform": "windows",

"rotatable": false,

"takesScreenshot": true,

"version": "17.0.963.56",

"webStorageEnabled": false

}

}


[1.406][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with params {

"ms": 20000.0

}


[1.406][FINER]: Waiting for all views to stop loading...
[1.406][FINER]: Done waiting for all views to stop loading
[1.406][FINER]: Waiting for all views to stop loading...
[1.407][FINER]: Done waiting for all views to stop loading
[1.407][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[1.409][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with params {

"ms": 20000.0

}


[1.409][FINER]: Waiting for all views to stop loading...
[1.409][FINER]: Done waiting for all views to stop loading
[1.409][FINER]: Waiting for all views to stop loading...
[1.410][FINER]: Done waiting for all views to stop loading
[1.410][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[1.411][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/url) with params {

"url": "http://localhost:64052/Dashboard/Inde..."

}


[1.411][FINER]: Waiting for all views to stop loading...
[1.412][FINER]: Done waiting for all views to stop loading
[5.762][FINER]: Waiting for all views to stop loading...
[5.781][FINER]: Done waiting for all views to stop loading
[5.781][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/url) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.782][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with params {

"ms": 20000.0

}


[5.782][FINER]: Waiting for all views to stop loading...
[5.786][FINER]: Done waiting for all views to stop loading
[5.786][FINER]: Waiting for all views to stop loading...
[5.787][FINER]: Done waiting for all views to stop loading
[5.787][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.795][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with params {

"ms": 20000.0

}


[5.795][FINER]: Waiting for all views to stop loading...
[5.800][FINER]: Done waiting for all views to stop loading
[5.800][FINER]: Waiting for all views to stop loading...
[5.801][FINER]: Done waiting for all views to stop loading
[5.801][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.803][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element) with params {

"using": "css selector",

"value": ".dashboard"

}


[5.803][FINER]: Waiting for all views to stop loading...
[5.805][FINER]: Done waiting for all views to stop loading
[5.849][FINER]: Waiting for all views to stop loading...
[5.850][FINER]: Done waiting for all views to stop loading
[5.850][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"ELEMENT": ":wdc:1330527497043"

}

}


[5.858][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with params {

"ms": 20000.0

}


[5.858][FINER]: Waiting for all views to stop loading...
[5.859][FINER]: Done waiting for all views to stop loading
[5.859][FINER]: Waiting for all views to stop loading...
[5.860][FINER]: Done waiting for all views to stop loading
[5.860][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.861][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with params {

"ms": 20000.0

}


[5.861][FINER]: Waiting for all views to stop loading...
[5.864][FINER]: Done waiting for all views to stop loading
[5.865][FINER]: Waiting for all views to stop loading...
[5.865][FINER]: Done waiting for all views to stop loading
[5.865][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.866][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/execute) with params {

"args": [ ],

"script": "return window.InstrumarDashboard.Widg..."

}


[5.866][FINER]: Waiting for all views to stop loading...
[5.867][FINER]: Done waiting for all views to stop loading
[5.885][FINER]: Waiting for all views to stop loading...
[5.886][FINER]: Done waiting for all views to stop loading
[5.886][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/execute) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": true

}


[5.887][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with params {

"ms": 20000.0

}


[5.887][FINER]: Waiting for all views to stop loading...
[5.890][FINER]: Done waiting for all views to stop loading
[5.890][FINER]: Waiting for all views to stop loading...
[5.891][FINER]: Done waiting for all views to stop loading
[5.891][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.892][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with params {

"ms": 20000.0

}


[5.892][FINER]: Waiting for all views to stop loading...
[5.893][FINER]: Done waiting for all views to stop loading
[5.893][FINER]: Waiting for all views to stop loading...
[5.894][FINER]: Done waiting for all views to stop loading
[5.894][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[5.895][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element) with params {

"using": "id",

"value": "widget-38000031000000"

}


[5.895][FINER]: Waiting for all views to stop loading...
[5.896][FINER]: Done waiting for all views to stop loading
[5.934][FINER]: Waiting for all views to stop loading...
[5.935][FINER]: Done waiting for all views to stop loading
[5.935][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"ELEMENT": ":wdc:1330527497044"

}

}


[5.936][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497044/element)
with params {

"using": "class name",

"value": "widget-layer"

}


[5.936][FINER]: Waiting for all views to stop loading...
[5.937][FINER]: Done waiting for all views to stop loading
[5.977][FINER]: Waiting for all views to stop loading...
[5.978][FINER]: Done waiting for all views to stop loading
[5.978][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497044/element)
with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"ELEMENT": ":wdc:1330527497045"

}

}


[5.979][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497045/attribute/
id)
[5.979][FINER]: Waiting for all views to stop loading...
[5.980][FINER]: Done waiting for all views to stop loading
[6.018][FINER]: Waiting for all views to stop loading...
[6.033][FINER]: Done waiting for all views to stop loading
[6.033][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497045/attribute/
id) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": "widgetlayer-126"

}


[6.039][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with params {

"ms": 20000.0

}


[6.039][FINER]: Waiting for all views to stop loading...
[6.039][FINER]: Done waiting for all views to stop loading
[6.039][FINER]: Waiting for all views to stop loading...
[6.040][FINER]: Done waiting for all views to stop loading
[6.040][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[6.053][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with params {

"ms": 20000.0

}


[6.053][FINER]: Waiting for all views to stop loading...
[6.054][FINER]: Done waiting for all views to stop loading
[6.054][FINER]: Waiting for all views to stop loading...
[6.056][FINER]: Done waiting for all views to stop loading
[6.056][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[6.060][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element) with params {

"using": "id",

"value": "widget-38000031000000"

}


[6.060][FINER]: Waiting for all views to stop loading...
[6.061][FINER]: Done waiting for all views to stop loading
[6.103][FINER]: Waiting for all views to stop loading...
[6.103][FINER]: Done waiting for all views to stop loading
[6.103][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"ELEMENT": ":wdc:1330527497044"

}

}


[6.161][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497044/element)
with params {

"using": "class name",

"value": "widget-layer"

}


[6.161][FINER]: Waiting for all views to stop loading...
[6.161][FINER]: Done waiting for all views to stop loading
[6.184][FINER]: Waiting for all views to stop loading...
[6.185][FINER]: Done waiting for all views to stop loading
[6.185][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497044/element)
with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"ELEMENT": ":wdc:1330527497045"

}

}


[6.186][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497045/attribute/
id)
[6.186][FINER]: Waiting for all views to stop loading...
[6.187][FINER]: Done waiting for all views to stop loading
[6.200][FINER]: Waiting for all views to stop loading...
[6.200][FINER]: Done waiting for all views to stop loading
[6.200][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/element/:wdc:1330527497045/attribute/
id) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": "widgetlayer-126"

}


[6.202][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with params {

"ms": 20000.0

}


[6.203][FINER]: Waiting for all views to stop loading...
[6.203][FINER]: Done waiting for all views to stop loading
[6.203][FINER]: Waiting for all views to stop loading...
[6.204][FINER]: Done waiting for all views to stop loading
[6.204][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/implicit_wait) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[6.205][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with params {

"ms": 20000.0

}


[6.205][FINER]: Waiting for all views to stop loading...
[6.206][FINER]: Done waiting for all views to stop loading
[6.206][FINER]: Waiting for all views to stop loading...
[6.206][FINER]: Done waiting for all views to stop loading
[6.206][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/timeouts/async_script) with response
{

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {



}

}


[6.207][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/execute) with params {

"args": [ ],

"script": "return InstrumarDashboard.WidgetLayer..."

}


[6.207][FINER]: Waiting for all views to stop loading...
[6.208][FINER]: Done waiting for all views to stop loading
[6.224][FINER]: Waiting for all views to stop loading...
[6.225][FINER]: Done waiting for all views to stop loading
[6.225][FINE]: Command finished (/session/
af94801bd578cba2cdd9631a3a0c2eb2/execute) with response {

"sessionId": "af94801bd578cba2cdd9631a3a0c2eb2",

"status": 0,

"value": {

"Plots": [ {

"Id": -1,

"Name": "",

"Series": [ {

"Color": "#FF0000",

"Colors": [ "#FF0000" ],

"Data": [ {

"Item1": 2,

"Item2": 33.33

} ],

"Details": null,

"FillRatio": 0.3,

"Formatted": [ [ 2, 33.33 ] ],

"Id": 0,

"Name": "A",

"Style": "Normal",

"Thickness": 1,

"Ticks": null,

"xMax": 2,

"xMin": 2

}, {

"Color": "#FFFF00",

"Colors": [ "#FFFF00" ],

"Data": [ {

"Item1": 1,

"Item2": 33.33

} ],

"Details": null,

"FillRatio": 0.3,

"Formatted": [ [ 1, 33.33 ] ],

"Id": 0,

"Name": "B",

"Style": "Normal",

"Thickness": 1,

"Ticks": null,

"xMax": 1,

"xMin": 1

}, {

"Color": "#00FF00",

"Colors": [ "#00FF00" ],

"Data": [ {

"Item1": 0,

"Item2": 33.33

} ],

"Details": null,

"FillRatio": 0.6,

"Formatted": [ [ 0, 33.33 ] ],

"Id": 0,

"Name": "C",

"Style": "Normal",

"Thickness": 1,

"Ticks": null,

"xMax": 0,

"xMin": 0

} ],

"Ticks": [ [ 0, "C" ], [ 1, "B" ], [ 2, "A" ] ],

"xMax": 2,

"xMin": 0

} ],

"xMax": 2,

"xMin": 0

}

}


[7.405][FINE]: Command received (/session/
af94801bd578cba2cdd9631a3a0c2eb2/window)

Any suggestions on why this is happening?

Adrian Longley

unread,
Mar 6, 2012, 10:19:50 AM3/6/12
to webd...@googlegroups.com
Hi,

I am running the latest chromedriver.exe and WebDriver 2.20 and getting the following problem:

All my tests run well, but when I call Quit() on the ChromeDriver once a test is complete, Chrome itself closes, but chromedriver.exe does not.

So after 10 tests have completed I have zero browsers open but 10 chromedriver.exe processes left hanging.

Strikes me this is WebDriver's problem rather than chromedriver itself, but apologies if I'm wrong there. Anyone else seen this? Is this a known issue or am I doing something stupid?

Cheers,
Adrian

Adrian Longley

unread,
Mar 6, 2012, 10:35:00 AM3/6/12
to webd...@googlegroups.com
A bit more info. While there was nothing in the chromedriver.log I have just noticed this output from chromedriver.exe as the browser window closes:

[0306/153144:ERROR:automation_proxy.cc(387)] Channel error in AutomationProxy.

Ideas anyone?

Also, I am running on Windows via c#.

Adrian Longley

unread,
Mar 6, 2012, 10:46:37 AM3/6/12
to webd...@googlegroups.com
> Is this a known issue or am I doing something stupid?

Never mind, it was the latter!

Pawan Garia

unread,
Mar 7, 2012, 1:09:26 AM3/7/12
to webd...@googlegroups.com
Hi Adrian ,
Its working fine for me i am using Webdriver 2.20


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.




--
Regards-

PAWAN GARIA

Web User

unread,
Apr 11, 2012, 8:07:25 PM4/11/12
to webd...@googlegroups.com
I am also facing the same issue , In my Task Manager so many chromedriver.exe are running but test cases are pass.

I knw it silly but can anyone recommend after all test complete i should use webdriver.quit or webdriver.close.


Thanks

Mike Riley

unread,
Apr 12, 2012, 11:40:36 AM4/12/12
to webd...@googlegroups.com
The quit() method should close all open windows for a session, where close() will only close the current on, I believe.  I always use quit().

Mike

Brian George

unread,
Aug 22, 2013, 5:23:23 PM8/22/13
to webd...@googlegroups.com
I'm curious what you found you were doing incorrectly?

Brian

darrell

unread,
Aug 23, 2013, 4:06:05 PM8/23/13
to webd...@googlegroups.com
I know that if I abort a test and close the Chrome browser in the middle of the test, the chromedriver.exe associated with it remains open. So it is necessary for the WebDriver code to send the driver.quit() signal in order to have the chromedriver.exe exit memory.

This smells like something in your test is failing in maybe the setup. Most frameworks will have a setup, test, teardown structure. If the test dies in the middle of the 'test' section it will call the teardown. The teardown will close the browser and thus close the chromedriver.exe.

Maybe you have two conditions causing this error. The first would be that the code would die in the setup but after it opened the initial browser window (before the driver.get()). The second is that the teardown code assumes too much. If the setup fails it will jump right to the teardown. If the teardown assumes the setup ran to completion it might be trying to do something which also fails. If the teardown fails before it gets to the driver.quit() then there is nothing to close the browser. Thus you have a browser with a blank tab and a chromedriver.exe running in the background.

Also, I notice a lot of switches in the launching chrome INFO. Are those the default? If no, maybe turn a few off. That might change things. Maybe give you better/different error messages.

Darrell

darrell

unread,
Aug 23, 2013, 4:07:43 PM8/23/13
to webd...@googlegroups.com
Mani,

If you driver.close() it will close the current window but might leave the chromedriver.exe running. I always driver.quit() at the end of a test suite, so it will close the chromedriver.exe.
Reply all
Reply to author
Forward
0 new messages