ericmckean / chromedriver

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

Two Chrome Driver launched doesnt work #1055

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Environment::
- I am using Chrome Version 41.0.2272.76 m
- Tried using even latest ChromeDriver & Selenium Standalone jar -- but still 
face the same issue.
- Windows 7 64 bit
- Simple code that I am trying:
          WebDriver driver1 = new ChromeDriver();              
          driver1.get("http://www.google.com");
          Thread.sleep(3000);

          WebDriver driver2 = new ChromeDriver(); 
          driver2.get("http://www.google.com");
          Thread.sleep(3000);

          driver1.quit();
          driver2.quit();
   ** With this code, google launches in first tab of Chrome -- but for the second one it doesnt load the page. Just gets stuck with: data:; in the address bar.

   ** I tried using a Chrome Extension named -- New Tab, New Windows --> that opens new tab in new window. But still see the same issue. When the 2nd driver is launched it shows same data:; error.

The same code used to work on my machine couple of months back. Not sure what 
has changed recently.

Please suggest asap how to fix it. Totally stuck with the issue. Thanks!

Original issue reported on code.google.com by shrutiuj...@gmail.com on 9 Mar 2015 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
I am not able to reproduce the issue

Tested on below Configurations:-
A]
 Linux ubuntu 64bit
 Selenium version – 2.45
 Chromedriver version – 2.14
 Chrome browser version – 40.0.2214.115 (64-bit)
 Java – 7

[B]
Windows 8.1 64bit
Chromedriver 2.14
Selenium version – 2.45
Java 8
Chrome browser - 41.0.2272.76 (64-bit)

System.setProperty("webdriver.chrome.driver", 
"/usr/local/google/home/gmanikpure/Downloads/chromedriver");
        WebDriver driver1 = new ChromeDriver();
          driver1.get("http://www.google.com");
          Thread.sleep(3000);
          driver1.quit();

          WebDriver driver2 = new ChromeDriver();
          driver2.get("http://www.google.com");
          Thread.sleep(3000);
          driver2.quit();

Could you please check your setup & try again

Original comment by gmanikp...@chromium.org on 9 Mar 2015 at 5:16

GoogleCodeExporter commented 9 years ago
I still see the same issue. Env details:
* Windows 7 64 bit
* ChromeDriver (v2.8.241075)
* Selenium 2.33
* Sun Java 6
* Chrome: 41.0.2272.76 m

Pls suggest how to fix this issue -- totally stuck. Let me know if I can pull 
some logs

Original comment by shrutiuj...@gmail.com on 9 Mar 2015 at 5:53

GoogleCodeExporter commented 9 years ago
Logs attached from: C:\Users\IBM_ADMIN\AppData\Local\Temp

Original comment by shrutiuj...@gmail.com on 9 Mar 2015 at 6:06

Attachments:

GoogleCodeExporter commented 9 years ago
I tried with your configurations Selenium 2.33 and chromedriver 2.8, but i am 
not to reproduce the issue.

Can you please change to latest versions Chromedriver 2.14 Selenium version – 
2.45 and try

Original comment by gmanikp...@chromium.org on 9 Mar 2015 at 6:54

GoogleCodeExporter commented 9 years ago
Tried with:: 
* selenium-server-standalone-2.45.0 JAR
* ChromeDriver 2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf)

Still it is not working. Pls suggest how to fix it?

Original comment by shrutiuj...@gmail.com on 10 Mar 2015 at 7:03

GoogleCodeExporter commented 9 years ago
Any updates? Pls suggest I'm stuck with the issue.

Original comment by shrutiuj...@gmail.com on 11 Mar 2015 at 6:18

GoogleCodeExporter commented 9 years ago
Can you please record chromedriver log with verbose logging enabled.
Refer this link for how to do this- 
https://sites.google.com/a/chromium.org/chromedriver/logging 

Original comment by gmanikp...@chromium.org on 11 Mar 2015 at 6:52

GoogleCodeExporter commented 9 years ago
1). Wrote the following code:
System.setProperty("webdriver.chrome.driver", 
"C:\\EclipseLuna-WS\\chromedriver.exe");
WebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:9515"), 
DesiredCapabilities.chrome());
driver.get("http://www.google.com"); 

2). In command prompt ran this: chromedriver.exe --verbose 
--log-path=c:\\chromedriver.log

3). Logs attached.

Original comment by shrutiuj...@gmail.com on 12 Mar 2015 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
But this is only for 1 chrome driver. My problem is with 2 drivers where I have 
a code like this:

WebDriver driver1 = new ChromeDriver();              
driver1.get("http://www.google.com");
Thread.sleep(3000);

WebDriver driver2 = new ChromeDriver(); 
driver2.get("http://www.google.com");
Thread.sleep(3000);

driver1.quit();
driver2.quit();

Original comment by shrutiuj...@gmail.com on 12 Mar 2015 at 6:56

GoogleCodeExporter commented 9 years ago
Any updates on how the issue can be fixed?

Original comment by shrutiuj...@gmail.com on 14 Mar 2015 at 7:00

GoogleCodeExporter commented 9 years ago
I created the verbose log with the below code:

WebDriver driver = new RemoteWebDriver(new URL("http://localhost:9515"), 
DesiredCapabilities.chrome());
        driver.get("http://www.google.com");
        Thread.sleep(3000);

        WebDriver driver2 = new RemoteWebDriver(new URL("http://localhost:9515"), DesiredCapabilities.chrome());
        driver2.get("http://www.gmail.com");
        Thread.sleep(3000);

        driver.quit();
        driver2.quit();

It works as expected. Issue is not reproducible.
Please refer the attached logs.

Original comment by gmanikp...@chromium.org on 16 Mar 2015 at 5:05

Attachments:

GoogleCodeExporter commented 9 years ago
BUT its still reproducible for me!! Can we do remote troubleshooting section?

Original comment by shrutiuj...@gmail.com on 17 Mar 2015 at 10:35

GoogleCodeExporter commented 9 years ago
I am also gettig the same data error in Chrome Version 41.0.2272.76 m
Please let me know how the issue can be fixed?

Original comment by jyoti.ja...@gmail.com on 17 Mar 2015 at 10:40

GoogleCodeExporter commented 9 years ago
Yes & i am also getting the same error in same version of Chrome. Help will be 
appreciated.

Original comment by shrutiuj...@gmail.com on 17 Mar 2015 at 7:51

GoogleCodeExporter commented 9 years ago
shrutiujjwal@ , Sorry we don't have the resources to provide remote 
troubleshooting. Can you please try on a different machine or you can also take 
help from other users on chromedriver-users@googlegroups.com

Original comment by gmanikp...@chromium.org on 17 Mar 2015 at 9:26