rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

Chromedriver should not open blank page if custom user data dir is specified #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
simply open an URL

What is the expected output? What do you see instead?
a Chrome opened with the target URL

Selenium version:
OS:windows
Browser:Google Chrome 
Browser version: any
-----------------------------------------------------
here is the example code:
--------------------------------------------------

cdservice=new ChromeDriverService.Builder()
                        .usingChromeDriverExecutable(new File(browser.cmdTemplate+"\\chromedriver.exe"))
                        .usingAnyFreePort()
                        .build();
cdservice.start();
 System.setProperty("webdriver.chrome.driver", browser.cmdTemplate+"\\chromedriver.exe");
                            DesiredCapabilities capabilities = DesiredCapabilities.chrome();
    capabilities.setCapability("chrome.switches", Arrays.asList("--user-data-dir="+ browser.cmdTemplate+"\\pref640"));
     RemoteWebDriver driver = new RemoteWebDriver(cdservice.getUrl(),   capabilities);

                             try {
                                 driver.get(url);
                                Thread.sleep(waittime);
}                               
---------------------------------------------
and the error output:
--------------------------------------------
Started ChromeDriver
port=19907
version=18.0.995.0
[0301/184408:ERROR:ipc_channel_win.cc(261)] pipe error: 109
[0301/184408:ERROR:automation_proxy.cc(387)] Channel error in AutomationProxy.
18:44:11.696 INFO - Shutting down...
18:44:11.712 INFO - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,l
ocalport=8080]

Original issue reported on code.google.com by notus...@gmail.com on 1 Mar 2012 at 11:12

GoogleCodeExporter commented 9 years ago
I'm also seeing this problem.  I'm using Sel 1.19 on Windows 7.  Chrome version 
= 17.0.963.79 m and their About says it's 'up to date'.

Original comment by pgran...@gmail.com on 14 Mar 2012 at 6:16

GoogleCodeExporter commented 9 years ago
The problem appears to be intermittent.  I have a simple test (clicks a few 
links) which frequently passes, but a couple of times has gotten this Channel 
Error in Automation Proxy problem.  However a fairly complex test I have 
(multiple wait's with complex CSS selectors) consistently fails with this error 
along with being preceeded by a pipe error as follows.

[0314/112722:ERROR:ipc_channel_win.cc(124)] pipe error: 109
[0314/112722:ERROR:automation_proxy.cc(387)] Channel error in AutomationProxy.

Again, my environment is as I stated in my comment above. I'll add that I have 
another Chrome browser open at the same time--not sure if that's relevant.

Original comment by pgran...@gmail.com on 14 Mar 2012 at 6:32

GoogleCodeExporter commented 9 years ago
nope, having another Chrome browser open at the same time is not the problem.  
I closed it and reran and still get this error.

Would be really helpful to have this fixed soon.  I like using Chrome and FFox 
as a baseline when I'm running tests against IE.

Original comment by pgran...@gmail.com on 14 Mar 2012 at 6:39

GoogleCodeExporter commented 9 years ago
I think I have the same issue (other line of code, but also v19 here)

lots of tests failed with this error
Started ChromeDriver
port=21195
version=19.0.1068.0
[0331/200534:ERROR:ipc_channel_win.cc(124)] pipe error: 109
[0331/200535:ERROR:automation_proxy.cc(387)] Channel error in AutomationProxy.

After a bunch of relaunches, I got some other error:

[0331/201618:ERROR:automation_proxy.cc(387)] Channel error in AutomationProxy.
.\test\automation\proxy_launcher.cc(305): error: Value of: browser.get()
  Actual: false
Expected: true

Then I found at lots of dead chromedriver.exe processes were active. I killed 
all those processes, and after each unittest, I am now calling driver.quit() 
before driver.close().
I didn't get anymore dangling processes, and I didn't get this error anymore.

Original comment by levi.mai...@gmail.com on 31 Mar 2012 at 6:55

GoogleCodeExporter commented 9 years ago
I think different comments are talking about different issues here; I'll 
address the first one.

So Chrome and ChromeDriver starts, but it never navigates to the actual page 
you request? Why are you using a separate profile? Does the problem still occur 
if you don't use that profile? ChromeDriver always sets the homepage to 
about:blank.

Original comment by kkania@chromium.org on 17 Apr 2012 at 9:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Problem happens with us intermittently and not doing anything special with 
profiles. Sometimes Chrome starts up at about:blank and never navigates to URL 
and our WebDriverWait times out at 120 seconds. But, sometimes it works. Still 
trying to isolate. Happened with CD 19 and just downloaded 20, but still 
happens.

See these in IDEA:

2012-06-05 02:56:04.125 Google Chrome Helper[12226:2503] Connection Invalid 
error for service com.apple.hiservices-xpcservice.
2012-06-05 02:56:04.139 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
2012-06-05 02:56:04.154 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
2012-06-05 02:56:04.161 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
2012-06-05 02:56:04.162 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
[12210:-1222340608:25110621089126:ERROR:rlz.cc(34)] Not implemented reached in 
bool GoogleUpdateSettings::GetLanguage(string16 *)
[0604/165636:ERROR:automation_proxy.cc(367)] Channel error in AutomationProxy.
[0604/165636:ERROR:automation_proxy.cc(367)] Channel error in AutomationProxy.
2012-06-05 02:56:04.125 Google Chrome Helper[12226:2503] Connection Invalid 
error for service com.apple.hiservices-xpcservice.
2012-06-05 02:56:04.139 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
2012-06-05 02:56:04.154 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
2012-06-05 02:56:04.161 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
2012-06-05 02:56:04.162 Google Chrome Helper[12226:207] Error received in 
message reply handler: Connection invalid
[12210:-1222340608:25110621089126:ERROR:rlz.cc(34)] Not implemented reached in 
bool GoogleUpdateSettings::GetLanguage(string16 *)
[0604/165636:ERROR:automation_proxy.cc(367)] Channel error in AutomationProxy.
[0604/165636:ERROR:automation_proxy.cc(367)] Channel error in AutomationProxy.

Original comment by r...@sproutbuilder.com on 5 Jun 2012 at 2:58

GoogleCodeExporter commented 9 years ago
I'm also facing the same issue.. I'm not able to navigate to the actual page 
after launching the browser. Is there any solution for this.? Please provide me 
a solution.

Original comment by praveen....@gmail.com on 16 Jun 2012 at 6:36

GoogleCodeExporter commented 9 years ago
Hello,

Getting blank pages too using Chrome.
Repro can be achieved just by using Chrome for a while.  Then every url you 
enter displays correctly for 1/2-1 sec and Blank!
If hit refresh, same story.

Mac OS X 10.6.8
Chrome Ver: Version 19.0.1084.56

Logs:
27/06/2012 23:10:39 [0x0-0x41e41e].com.google.Chrome[8530]  Wed Jun 27 23:10:39 
87-198-113-115.ptr.magnet.ie Google Chrome Helper[8535] <Error>: unknown error 
code: invalid numerical value
27/06/2012 
23:10:40    [0x0-0x41e41e].com.google.Chrome[8530]  [8535:-1610533568:84495659844090
5:ERROR:gles2_cmd_decoder.cc(4856)] 
27/06/2012 
23:10:41    [0x0-0x41e41e].com.google.Chrome[8530]  [8535:-1610533568:84495719674202
4:ERROR:gles2_cmd_decoder.cc(4856)] 

Original comment by Kiel...@gmail.com on 27 Jun 2012 at 10:14

GoogleCodeExporter commented 9 years ago
Have the same issue after Chrome was updated to 21.0.1180.60 m version

Original comment by Korbut...@gmail.com on 3 Aug 2012 at 12:57

GoogleCodeExporter commented 9 years ago
Yeah getting this problem. Here's what the error in the console says. 

Started ChromeDriver
port=60286
version=19.0.1068.0
log=C:\workspace\
.\test\automation\proxy_launcher.cc(108): error: Value of: app_launched
  Actual: 1
Expected: AUTOMATION_SUCCESS
Which is: 0
Error while awaiting automation ping from browser process
.\test\automation\proxy_launcher.cc(305): error: Value of: browser.get()
  Actual: false
Expected: true

and in the log it says

[0.774][INFO]:      Launching chrome: "C:\Documents and 
Settings\usernamehere\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

[45.818][SEVERE]:   Failed to initialize connection

and what happens is a new chrome browser opens, a chromedriver instance starts, 
but it never gets the url.

Original comment by tthrailk...@mymail.mines.edu on 3 Aug 2012 at 7:02

GoogleCodeExporter commented 9 years ago
Have the same issue, I use Chrome(21.0.1180.60 m) and Chromedriver(20.0.1133.0)

Original comment by jintao...@gmail.com on 6 Aug 2012 at 1:33

GoogleCodeExporter commented 9 years ago
See the ChromeDriver reports 'Unable to either launch or connect to Chrome' 
section under 
http://code.google.com/p/chromedriver/wiki/TroubleshootingAndSupport#Common_issu
es

Also, how are you running your test? Is it through an IDE or continuous build 
or test harness? Any ideas how about to reproduce your problem will be great.

Original comment by kkania@chromium.org on 6 Aug 2012 at 5:49

GoogleCodeExporter commented 9 years ago
I got it working by updating ChromeDriver to the newest release. I thought it 
was updated but it wasn't.

Original comment by tthrailk...@mymail.mines.edu on 6 Aug 2012 at 6:44

GoogleCodeExporter commented 9 years ago
i used driver.quit() instead of driver.close(). It resolved that pipe error 
issue. 

Original comment by sasi....@gmail.com on 24 Aug 2012 at 12:14

GoogleCodeExporter commented 9 years ago
The extension "fast save 1.1 id: ddfjfngcjncbjpopbimffggcbheaeijg" is causing 
this problem. DIsable for fix this. It worked for me.
Im using Ubuntu 12.10
Chrome Version 22.0.1229.94

Original comment by mfkrm...@gmail.com on 25 Oct 2012 at 7:38

GoogleCodeExporter commented 9 years ago
I had the same problem with the "about:blank" page loading instead of the 
website.. 

RedHat, Capybara, Selenium, 

Problem was my version of Chrome was too old (v. 17 i think). I upgraded it to 
v23 and it works ok now.

Original comment by thebusin...@gmail.com on 8 Nov 2012 at 11:20

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 13 Mar 2013 at 11:55

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 14 Mar 2013 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 14 Mar 2013 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 14 Mar 2013 at 9:52

GoogleCodeExporter commented 9 years ago
I think I got the same issue: "Chromedriver open a blank page instead of the 
target website" if I start a chrome window before.
If I don't start a chrome window before, Chromedriver start and navigate to url 
success.

I used latest version of chromedriver and Selenium as instruction from below 
link:
http://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a278015662
8d

Original comment by nguyenhu...@gmail.com on 22 Mar 2013 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by kkania@chromium.org on 30 Sep 2013 at 10:52

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:19