Selenium ChromeDriver path issue with PyCharm
已回答
I'm trying to use Selenium in PyCharm, and it seems that it is already installed in "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-3.0.1-py2.7.egg/selenium", so I should in theory be able to use the package like normal, but when I go to run the script, I get the following error:
Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x10072dc90>> ignored
And I'm not sure how to fix it within the PyCharm IDE... any help would be greatly appreciated!
请先登录再写评论。
Hi Bengejd! Looks like chromedriver executable was not found. Please check if it's in PATH. You can specify it manually with:
You can test if it actually is in the python PATH, if you open a cmd and type in chromedriver and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong. Then try the following:
Download ChromeDriver
Then you have multiple options:
Hi I am Abhishek , I am Facing problem while testing
system is not detecting attributes like Send-Keys, click etc
Prompting error in console as "assert isinstance(driver.find_elements_by_name("name").send_keys, object)
AttributeError: 'list' object has no attribute 'send_keys'
So what should i do?