SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

chromedriver - unable to open url [python] #7343

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 7343

Upon calling `webdriver.Chrome.get('http://uloz.to/hledej?q=Myslenky+zlocince+9-04DVD%28bt%29cz.avi&related=1')`
i get:

Traceback (most recent call last):
  File "/prac/python/ulozto/scrape.py", line 31, in <module>
    browser.get(args.url)
  File "/data/.envs/ulozto/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 178, in get
    self.execute(Command.GET, {'url': url})
  File "/data/.envs/ulozto/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 166, in execute
    self.error_handler.check_response(response)
  File "/data/.envs/ulozto/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py",
line 164, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: u"unknown error: 'url' must
be a string\n  (Session info: chrome=35.0.1916.86)\n  (Driver info: chromedriver=2.9,platform=Linux
3.14-1-amd64 x86_64)" 

some related info:

python 2.7.6, selenium 2.41.0, debian testing

aptitude search -F'%p %v' '~i' | grep chrom
chromedriver                                                      35.0.1916.86-1
chromium                                                          35.0.1916.86-1
chromium-inspector                                                35.0.1916.86-1

Reported by starenka0 on 2014-05-13 22:44:02

lukeis commented 8 years ago
(works fine with Firefox)

Reported by starenka0 on 2014-05-13 22:46:29

lukeis commented 8 years ago

Reported by barancev on 2014-05-14 12:37:59

lukeis commented 8 years ago
I can not recreate this. I have used the following

(selenium)☁  selenium  PATH=$PATH:. python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> webdriver.Chrome()
<selenium.webdriver.chrome.webdriver.WebDriver object at 0x104ccdc90>
>>> h=_
>>> h.get("http://uloz.to/hledej?q=Myslenky+zlocince+9-04DVD%28bt%29cz.avi&related=1")
>>> webdriver.__version__
'2.41.0'

Please can you give us a script to run with the error

Reported by david.burns@theautomatedtester.co.uk on 2014-05-14 12:51:48

lukeis commented 8 years ago
Sure, the script is here https://gist.github.com/starenka/86f805252b221795f9d9

I run it from virtualenv:

(ulozto)starenka /prac/python/ulozto % pip freeze
argparse==1.2.1
selenium==2.41.0
wsgiref==0.1.2

like this:

./scrape.py 'http://uloz.to/hledej?q=Myslenky+zlocince+9-04DVD%28bt%29cz.avi&related=1'
-b chrome

Reported by starenka0 on 2014-05-14 13:38:44

lukeis commented 8 years ago
as the exception stated, argument must be a string, this script was passing a list

Reported by luke.semerau on 2015-04-03 19:26:28

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:22:28