ericmckean / chromedriver

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

WebDriverException- cannot get automation extension #957

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I run python selenium tests on Team City and recently I dumped some temp files 
to clear space and came to realize that Chrome uses some of these files. Now I 
am getting the error below when I try to run my tests.

I've uninstalled / installed Chrome and still have this issue. My other tests 
(IE, Safari, Firefox) are fine so I've singled it to this event. 

I also reinstalled the build agent to see if that could resolve the issue but 
that did not help. 

I can remote into the server and run the tests completely fine via the command 
line, so there must be some connection between the tests running as a service 
that is causing this.

Another interesting symptom is that the JRE constantly spawns chromedriver.exe 
and I have to forcefully taskkill chrome* and java* instantaneously to break 
out of this. 

Any help would be appreciated. Thank you.
-Bob

Error
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\case.py", line 322, in run
    self.setUp()
  File "C:\Python27\sandbox\serving-selenium-tests\test_Chrome_Basic.py", line 790, in setUp
    self.driver.set_window_position(0,0)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 763, in set_window_position
    'windowHandle': windowHandle})
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 173, in execute
    self.error_handler.check_response(response)
  File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 166, in check_response
    raise exception_class(message, screen, stacktrace)
WebDriverException: Message: u'unknown error: cannot get automation 
extension\nfrom timeout: Timed out receiving message from renderer: 600.000\n  
(Session info: chrome=38.0.2125.104)\n  (Driver info: 
chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)' 
-------------------- >> begin captured logging << --------------------
selenium.webdriver.remote.remote_connection: DEBUG: POST 
http://127.0.0.1:58198/session {"desiredCapabilities": {"platform": "ANY", 
"browserName": "chrome", "version": "", "javascriptEnabled": true, 
"chromeOptions": {"args": [], "extensions": []}}}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: POST 
http://127.0.0.1:58198/session/80280a303e62f984a49bab27aff6842a/window/current/p
osition {"y": 0, "x": 0, "windowHandle": "current", "sessionId": 
"80280a303e62f984a49bab27aff6842a"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
--------------------- >> end captured logging << ---------------------

Original issue reported on code.google.com by Robert.P...@gmail.com on 22 Oct 2014 at 1:07

GoogleCodeExporter commented 9 years ago
Looks like this can be closed to be addressed via 
https://code.google.com/p/chromium/issues/detail?id=422218

Original comment by Robert.P...@gmail.com on 7 Nov 2014 at 7:32

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

Original comment by gmanikp...@chromium.org on 26 Feb 2015 at 12:37