Giter Club home page Giter Club logo

Comments (29)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024

Original comment by [email protected] on 30 Mar 2012 at 10:36

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thanks for the report. Actually, there is a dedicated site for ChromeDriver, 
which is still supported by the chromium team. I'm moving your bug there.

Original comment by [email protected] on 30 Mar 2012 at 10:40

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
This is not a known issue. 

Do you see Chrome start when you run the test?
Do you see chrome.exe appear in the task manager when you run the test?
Are you able to run 
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe 
manually? If so, can you go to about:version and post the contents here?

Original comment by [email protected] on 30 Mar 2012 at 10:44

  • Changed title: Unable to launch Chrome on windows
  • Changed state: New
  • Added labels: Type-Defect
  • Removed labels: Area-Undefined, OS-Windows, Pri-2, Type-Bug

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
1.Do you see Chrome start when you run the test? No
2.Do you see chrome.exe appear in the task manager when you run the test? Yes
I see both chrome*32.exe and chromedriver*32.exe
3.Are you able to run 
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe 
manually?Yes If so, can you go to about:version and post the contents here?
18.0.1025.142 m

Original comment by [email protected] on 30 Mar 2012 at 10:51

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
For some reason chromedriver isn't connecting to chrome correctly. I put 
together a simple test package for you here:

http://code.google.com/p/chromedriver/downloads/detail?name=chromedriver_test.zi
p&can=4

Would you mind unzipping that, opening a command prompt and cd'ing into the 
unzipped chromedriver_test directory, and running .\run_test.bat. You should 
see a Chrome window startup.

Original comment by [email protected] on 4 Apr 2012 at 5:45

  • Changed state: Accepted

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Yes I see Chrome window start up,but when I try to run the automation test 
cases.
I still get this error.

[TestNG] Running:
  C:\Users\Murat\AppData\Local\Temp\testng-eclipse-223524379\testng-customsuite.xml

log4j:WARN No appenders could be found for logger 
(org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
Apr 6, 2012 5:35:15 PM org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [null, newSession {"desiredCapabilities":"Capabilities 
[{platform=ANY, browserName=chrome, version=}]"}]
Started ChromeDriver
port=9515
version=18.0.1022.0
log=C:\Users\Murat\workspaceold2\Selenium2Minted\chromedriver.log
.\test\automation\proxy_launcher.cc(106): 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(303): error: Value of: browser.get()
  Actual: false
Expected: true
FAILED CONFIGURATION: @BeforeMethod setUp("ch")
org.openqa.selenium.WebDriverException: Unable to either launch or connect to 
Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: 
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe 
(WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 91.44 seconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08 09:56:43'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', 
java.version: '1.6.0_22'
Driver info: driver.version: ChromeDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:424)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:123)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:78)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:120)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:98)
    at com.minted.SeleniumTestCase.setUp(SeleniumTestCase.java:88)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:550)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:638)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:891)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1215)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:758)
    at org.testng.TestRunner.run(TestRunner.java:613)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1170)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1095)
    at org.testng.TestNG.run(TestNG.java:1007)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)

SKIPPED CONFIGURATION: @AfterMethod tearDown
SKIPPED: mintedHome("http://www.stage.minted.com")

===============================================
    Default test
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 1
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================

[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@604e280c: 27 ms
[TestNG] Time taken by [TestListenerAdapter] Passed:0 Failed:0 Skipped:0]: 27 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@7ad81784: 6 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter@26ee7a14: 6 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@e80d1ff: 24 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@68e6ff0d: 8 ms

Original comment by [email protected] on 7 Apr 2012 at 12:39

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
It's good that you can see Chrome start up with the standalone package. 
However, for some reason your test setup is causing Chrome problems. Can you 
try:

1) Pass "--no-sandbox" to Chrome. You can do this by:
ChromeOptions options = new ChromeOptions();
options.addArguments("no-sandbox");

2) Use the Chrome in the standalone package that you downloaded instead of your 
system installation. You can do this by:
ChromeOptions options = new ChromeOptions();
options.setBinary("path\\to\\the\\standalone\\chrome.exe");

Let me know the results of each.

Original comment by [email protected] on 9 Apr 2012 at 5:41

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Also, a simple reproducible test case (with instructions on how to run the 
test) would be great! I've never used TestNG before.

Original comment by [email protected] on 9 Apr 2012 at 5:48

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thank you so much beign prompt.

Here is the backgroudn info for the webdriver.
The ChromeDriver consists of three separate pieces. There is the browser itself 
("chrome"), the language bindings provided by the Selenium project ("the 
driver") and an executable downloaded from the Chromium project which acts as a 
bridge between "chrome" and the "driver". 

To get set up, first download the appropriate prebuilt server. Make sure the 
server can be located on your PATH or specify its location via the 
webdriver.chrome.driver system property.

A simple repro test case.

This is the base class which sets up the  system property(instructed above) and 
web-driver instance .

public  class SeleniumTestCase(){
@BeforeMethod
  @Parameters ({"browser"})
  public void setUp(@Optional ("ie") String browser)throws Exception{
 System.setProperty("webdriver.chrome.driver","path\\to\\the\\standalone\\chromedriver.exe");
WebDriver driver= new ChromeDriver();
}
}

This is the test class extends the base class 
public class SeleniumSmoke extends SeleniumTestCase {
@Parameters({"environment"})
  @Test 
  public void mintedHome(@Optional ("http://www.google.com")String environment) throws Exception{
    driver.get(environment);  
  }

}

Let me know if this helps,

Original comment by [email protected] on 9 Apr 2012 at 6:13

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Two things:

1) Does your simple repro test case work for you? For me it works fine. How are 
you running your test?

2) Did you try the two options I mentioned above?

Original comment by [email protected] on 9 Apr 2012 at 9:00

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
1. It does not work for me. I suspect it might be issue with Windows Vista and 
up ,because I remember seeing a bug on the webdriver project. Here is the URL 
https://groups.google.com/forum/?fromgroups#!topic/webdriver/DtzHREtafks. 

"How are you running your test?" by this you meant the IDE or something else? 
IDE Eclipse. If you meant to ask something else please let me know.

2. I am using SE2 Version 1.15 API,which does not include the  ChromeOptions(), 
I believe this class is introduced after 1.16 API. I will change my jar files 
and will let you know.

Original comment by [email protected] on 9 Apr 2012 at 10:09

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
1) Pass "--no-sandbox" to Chrome. You can do this by:
ChromeOptions options = new ChromeOptions();
options.addArguments("no-sandbox");

This did not work

2) Use the Chrome in the standalone package that you downloaded instead of your 
system installation. You can do this by:
ChromeOptions options = new ChromeOptions();
options.setBinary("path\\to\\the\\standalone\\chrome.exe")

But this one solved my problem.

Original comment by [email protected] on 9 Apr 2012 at 10:39

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Issue 51 has been merged into this issue.

Original comment by [email protected] on 17 Apr 2012 at 5:12

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
It's interesting that using the other Chrome binary solved your problem.

I don't think it's a problem with Vista/7, but it seems something about the 
Chrome you were trying to use.  I notice it was trying to use the one from your 
administrator account.  Perhaps for some reason it doesn't have privileges to 
connect to that? It would be interesting to see if you tried to install and use 
a system-wide or non-admin user Chrome, if that would work with Chromedriver.

Original comment by [email protected] on 17 Apr 2012 at 9:45

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I have the same problem. It occurs when running autests under Win7 SYSTEM user. 
(in my case special Windows service runs my autotests - the service is running 
under SYSTEM user and it runs Chrome browser and autotests under SYSTEM user)

So chromedriver.exe is also running under SYSTEM user and when it tries to 
start chrome browser from the default location under SYSTEM user - it fails.

chromedriver.log shows 

[INFO]:     Launching chrome: 
C:/Users/admin/AppData/Local/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
[58.846][SEVERE]:   Failed to initialize connection

and WebDriver log shows

org.openqa.selenium.WebDriverException: Unable to either launch or connect to 
Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: 
C:/Users/admin/AppData/Local/Google/Chrome/Application/chrome.exe (WARNING: The 
server did not provide any stacktrace information)

When I run the same configuration but under valid not-SYSTEM user, everything 
works well

Original comment by [email protected] on 3 May 2012 at 7:21

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
and finally the problem has been resolved by using Chrome standalone installer 
that installs Chrome for all users

Original comment by [email protected] on 4 May 2012 at 5:49

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thanks for that tip about the alternate install.  I thought the world should 
know about it so I attached a patch for the ChromeDriver wiki page.

Original comment by [email protected] on 22 May 2012 at 4:46

Attachments:

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thanks for the patch. I've added the information about the standalone installer 
to the troubleshooting section.

I'm going to mark this issue as resolved. If the alternate installer or passing 
--no-sandbox does not work for you, please reopen.

Original comment by [email protected] on 22 May 2012 at 5:09

  • Changed state: Resolved

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Yeah, I just realized I posted to the wrong issue tracker.  You added it to 
Selenium's wiki anyway, or should I submit the patch over there too?

Original comment by [email protected] on 22 May 2012 at 5:38

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I think it is best to put here. 
http://code.google.com/p/selenium/wiki/ChromeDriver

Original comment by [email protected] on 22 May 2012 at 5:41

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I added the info to the ChromeDriver troubleshooting site. It would be great to 
submit a patch on the selenium site to add it to their troubleshooting section 
too.

Original comment by [email protected] on 22 May 2012 at 5:42

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Will do -- thanks!

Original comment by [email protected] on 22 May 2012 at 5:59

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
still im having issues with the chrome.

I tried the ff.

first option: I use standalone ChromeStandaloneSetup.exe in c:/chrome and i put 
              the chromedriver.exe in my C:/eclipse/project/testproj folder.
              and my code :
     System.setProperty ("webdriver.chrome.driver",
                       "C:\\Genuitec\\workspace\\autotest-dev\\chromedriver.exe");
     driver = new ChromeDriver();

      The chrome launched and open my the url I specified. I thought that I was able 
      to solve this but after a few seconds a message prompts "chromedriver.exe has
      stopped working" and when I tried to open the logs. It says:

       Error communicating with the remote browser. It may have died. Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24' System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_04' Driver info: driver.version: BootDriver

org.openqa.selenium.remote.UnreachableBrowserException: Error communicating 
with the remote browser. It may have died.
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', 
java.version: '1.7.0_04'
Driver info: driver.version: BootDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:467)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:476)
at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:346)
at com.BootDriver.tearDown(Unknown Source)
at com.SuiteParent.endParent(Unknown Source)

Second Option: I tried this.
     System.setProperty("webdriver.chrome.driver", "C:\\Program 
                   Files\\Google\\Chrome\\Application\\cromedriver.exe");
     driver = new ChromeDriver();
     But it didn't even launch the chrome and error logs says:
     java.lang.NullPointerException
      at com.BootDriver.tearDown(Unknown Source)
      at com.SuiteParent.endParent(Unknown Source)

     Even though i put the patch "chromeWinService.patch" in this folder -
      C:\Program Files\Google\Chrome\Application\19.0.1084.56  Still the same 
      error java.lang.NullPointerException.  Is that the right path to put the patch?

   Thanks, and anticipating your immediate reply.

Sphere

Original comment by [email protected] on 23 Jun 2012 at 4:38

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024

Original comment by [email protected] on 13 Mar 2013 at 11:45

  • Changed state: Closed

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I've been having the same issues in chrome and firefox. I have tried 
downloading the standalone chromedriver, installing several versions of firefox 
and selenium, but nothing changed.

I'm using Netbeans 7.0 IDE, latest version of all browsers and a windows x64.

Apparently downloading the latest version of chromedriver.exe worked for me. 
(You can found it here: 
http://chromedriver.storage.googleapis.com/index.html?path=2.8/).

Anyway, I'm afraid that this issue can come back again.

Original comment by [email protected] on 17 Jan 2014 at 5:37

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024

Original comment by [email protected] on 21 Feb 2015 at 12:27

  • Changed state: Fixed

from chromedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.