Python chromedriver can't launch browser -


i'm working selenium webdriver version 2.49.2 , python2.7.7. windows. have chromedriver.exe in 'c:/python27' , 'c:/python27/scripts', , both of these added path variable. code fails @ browser=webdriver.chrome() tried

browser = webdriver.chrome("c:/python27/chromedriver.exe") had same result.

there's black window command line window split second, browser window doesn't appear.

the error message blank it's difficult troubleshoot:

traceback (most recent call last):   file "c:\path\to\python\script.py", line 88, in <module>     scrape(db_params)   file "c:\path\to\python\script.py", line 39, in scrape     browser = webdriver.chrome()   file "c:\python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 67, in __init__     desired_capabilities=desired_capabilities)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 87, in __init__     self.start_session(desired_capabilities, browser_profile)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 141, in start_session     'desiredcapabilities': desired_capabilities,   file "c:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 201, in execute     self.error_handler.check_response(response)   file "c:\python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 188, in check_response     raise exception_class(message, screen, stacktrace) webdriverexception: message:  

can suggest i'm missing please?

there seems issue loading chromedriver path (or environment variables).

what seem work pass full path chromedriver.exe in webdriver.chrome constructor this:

from selenium import webdriver driver = webdriver.chrome("c:/python27/chromedriver.exe") 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -