ericmckean / chromedriver

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

ChromeDriver 2.11 not work with Chrome 38 for Scheduled Tasks - Windows 2012 #935

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.

What steps will reproduce the problem?
1. Run ChromeDriver 2.11 with Chrome 38 using Task Scheduler in association 
with a service account. Or run via Team City with SYSTEM account.

What is the expected output? What do you see instead?
Expect the tests to run, instead get the below (TeamCity):

Test(s) failed. OpenQA.Selenium.WebDriverException : The HTTP request to the 
remote WebDriver server for URL 
http://localhost:65460/session/bc6f423fc15199174b531f02ee6bd72a/elements timed 
out after 60 seconds.
  ----> System.Net.WebException : The operation has timed out
   at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
   at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.FindElements(String mechanism, String value)
   at OpenQA.Selenium.By.FindElements(ISearchContext context)
   at Project.Tests.Acceptance.XyzTests.jobresults_page1_should_have_paging_bar_with_10_page_links() in e:\BuildAgent\work\1224369d9b0230b4\src\Project.Tests.Acceptance\Tests.cs:line 54
--WebException
   at System.Net.HttpWebRequest.GetResponse()
   at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)

Or, when running via Perl:
malformed JSON string, neither array, object, number, string or atom, at 
character offset 0 (before "read timeout at C:/P...") at RemoteConnection.pm 
line 102.

i.e in both cases, timeouts. Not a single test step runs.

Selenium version: 2.43.1
OS: Windows 2012 Datacentre
Browser: Chrome
Browser version: 38
ChromeDriver Version: 2.11

Note that Chrome version 37 is OK.

Note that Chrome version 38 is OK when run via interactive mode - i.e. a user 
logged into the Server kicks off the test using their own account in 
interactive mode (you see Chrome open on the screen and run). If that same user 
tries to run the tests via Task Scheduler, even using their own credentials 
(instead of the normal service account), it fails.

Other information: PhantomJS with ChromeDriver 2.11 / Selenium Server 2.43.1 is 
OK. 

Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Original issue reported on code.google.com by tim.buck...@gmail.com on 14 Oct 2014 at 10:28

GoogleCodeExporter commented 9 years ago
Also experiencing the same issue. Running a .Net application using ChromeDriver 
2.10 or 2.11 with Chrome version higher than 37 within the Task Scheduler 
prevents the ChromeDriver's Chrome.exe from spawning children processes. This 
is rendering our scheduled Selenium runs to fail if the machine's Chrome has 
recently been updated. Downgrading the Chrome version to 37 is the only 
workaround we have at this time.

Sample chrome_debug.log:

[7196:12016:1016/122925:WARNING:chrome_browser_main_win.cc(313)] Command line 
too long for RegisterApplicationRestart
[7196:12016:1016/122926:ERROR:child_process_launcher.cc(344)] Failed to launch 
child process
[7196:12016:1016/122926:ERROR:child_process_launcher.cc(344)] Failed to launch 
child process
[7196:12016:1016/122926:ERROR:child_process_launcher.cc(344)] Failed to launch 
child process
[7196:12016:1016/122926:ERROR:child_process_launcher.cc(344)] Failed to launch 
child process
[7196:12016:1016/122926:ERROR:child_process_launcher.cc(344)] Failed to launch 
child process

Original comment by abi...@uw.edu on 16 Oct 2014 at 8:09

GoogleCodeExporter commented 9 years ago
Exactly the same problems here, except the OS is Windows Server 2012R2.

Original comment by augustyn...@gmail.com on 17 Oct 2014 at 10:04

GoogleCodeExporter commented 9 years ago
Hi, this looks to be the same issue as the following(and 4 other suspected 
duplicates that I can count):
https://code.google.com/p/chromedriver/issues/detail?id=928

It looks to be unrelated to OS, and manifests when run from anything like 
scheduled tasks/Jenkins/TeamCity etc...

If you haven't already, could you please go vote for that issue? Thanks, we'd 
all like to see this fixed.

Original comment by jake.ben...@bromium.com on 17 Oct 2014 at 10:20

GoogleCodeExporter commented 9 years ago
I have the same problem.. please fix....

Original comment by johny200...@gmail.com on 17 Oct 2014 at 12:26

GoogleCodeExporter commented 9 years ago
Please, please, please fix this issue.  It's causing me MAJOR issues.

Original comment by ke...@better-insights.com on 21 Oct 2014 at 1:19

GoogleCodeExporter commented 9 years ago
Also experiencing this.  Does anyone know how to downgrade your version of 
chrome?

Original comment by tmwilso...@gmail.com on 22 Oct 2014 at 3:32

GoogleCodeExporter commented 9 years ago
Look at issue 928 - it includes links to a version 37 installer and 
instructions for prevent auto-update.  
https://code.google.com/p/chromedriver/issues/detail?id=928

Original comment by ke...@better-insights.com on 22 Oct 2014 at 3:49

GoogleCodeExporter commented 9 years ago
I have the same issue after updating to chrome 38 and driver v.2.11 my CI runs 
are not working. Doesn't click on anything, but works from eclipse if i run in 
a standalone manner. 

Original comment by sra...@gmail.com on 24 Oct 2014 at 12:10

GoogleCodeExporter commented 9 years ago
That´s a duplicate of #928:

https://code.google.com/p/chromedriver/issues/detail?id=928

Original comment by victor.p...@gmail.com on 24 Oct 2014 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by barancev on 25 Oct 2014 at 9:08