New issue
Advanced search Search tips

Issue 636324 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue chromedriver:1451
Owner: ----
Closed: Nov 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Chromedriver is broken by revision 410239

Project Member Reported by yang...@intel.com, Aug 10 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36

Steps to reproduce the problem:
1. Download chromedriver from http://chromedriver.storage.googleapis.com/index.html?path=2.22/, and I used the one for linux64.
2. Start chrome with following sample code in python
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.binary_location = '/workspace/server/android-module/linux-x86_64-chrome/410239/chrome'
driver = webdriver.Chrome(executable_path='/workspace/project/share/linux/tool/chromedriver/chromedriver-linux64-2.22', chrome_options=chrome_options)
driver.get('chrome://gpu')

3. Then I got below errors
    driver = webdriver.Chrome(executable_path='/workspace/project/share/linux/tool/chromedriver/chromedriver-linux64-2.22', chrome_options=chrome_options)
  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__
    self.quit()
  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 88, in quit
    self.service.stop()
  File "/usr/lib/python2.7/dist-packages/selenium/webdriver/chrome/service.py", line 111, in stop
    url_request.urlopen("http://127.0.0.1:%d/shutdown" % self.port)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 467, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 654, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 503: Service Unavailable

What is the expected behavior?
chrome://gpu can be displayed correctly

What went wrong?
I bisected the commits, and found r410239 broke the chromedriver. Latest code (r411021) also has this problem.

Did this work before? N/A 

Chrome version: 51.0.2704.106  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 22.0 r0
 
Labels: TE-NeedsTriageHelp
Components: Tests>WebDriver

Comment 3 by yang...@intel.com, Aug 12 2016

I know the reason now. I was using chromedriver downloaded from http://chromedriver.storage.googleapis.com/index.html?path=2.23/. But for latest Chromium, chromedriver needs some changes in r410239 also, which is not included in above links yet. With self-built chromedriver, everything is OK. 
So please close the issue. 

Comment 4 by rkilar...@gmail.com, Aug 12 2016

This may be the same issue, (running tests via Selenium on Windows 7) I can reproduce in Chrome Dev, but works fine in beta/stable.

Attached is my my stack trace/errors.

stacktrace.txt
57.2 KB View Download
Mergedinto: chromedriver:1451
Status: Duplicate (was: Unconfirmed)
yang.gu@, yes that's correct. Chromedriver changes of r410239 were made available in release v2.24. More details at https://bugs.chromium.org/p/chromedriver/issues/detail?id=1451 .

rkilarski@, Please upgrade to the latest versions of Chromedriver v2.25 and Chrome browser v54.0.2840.100 .
You can download chromedriver binary from https://sites.google.com/a/chromium.org/chromedriver/downloads

Sign in to add a comment