Finally I find the cause and the solution for this weird error.
This case is happening when selenium try to close the browser and quit.
driver.close();
driver.quit();
While the webpage is still loading.
to resolve this, you need to add one line before close the browser and quit the
Webdriver to check if the page is end loading or not yet.
On Tuesday, August 28, 2012 11:39:47 PM UTC+3, Joe Fl wrote:
>
> Hi,
>
> When running my script against chrome and it comes to this line
> "@browser.close"
>
> the following error messages display:
>
> Started ChromeDriver
> port=9515
> version=23.0.1240.0
> log=C:\qa_automation\watir_scripts\chromedriver.log
> [0828/160101:ERROR:ipc_sync_channel.cc(378)] Canceling pending sends
> [0828/160101:ERROR:ipc_sync_channel.cc(378)] Canceling pending sends
> [0828/160101:ERROR:ipc_sync_channel.cc(378)] Canceling pending sends
>
> chromedriver log file show this: (not the entire file)
>
> [14.321][FINER]: Waiting for all views to stop loading...
> [14.321][FINER]: Done waiting for all views to stop loading
> [14.440][FINER]: Waiting for all views to stop loading...
> [14.440][FINER]: Done waiting for all views to stop loading
> [14.440][FINE]: Command finished
> (/session/9a6b79ddcc93c1d1ed392668dbe008c0/element/:wdc:1346185825439/click)
> with response {
> "sessionId": "9a6b79ddcc93c1d1ed392668dbe008c0",
> "status": 0,
> "value": {
> }
> }
>
> [14.442][FINE]: Command received
> (/session/9a6b79ddcc93c1d1ed392668dbe008c0)
> [25.219][WARNING]: Chrome still running, terminating...
> [25.219][INFO]: Chrome shutdown
>
>
> I am working on a VM and it is running WinXP.
> Chrome version: 21
>
> Any help would be appreciate.
>
> Thank you,
> Joe
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]