xattr question
➜ ~ which chromedriver
/usr/local/bin/chromedriver
xattr -d com.apple.quarantine /usr/local/bin/chromedriver
This is the reason why im asking the question
/Users/mikecallahan/PycharmProjects/scrappingTutorial/venv/bin/python /Users/mikecallahan/PycharmProjects/scrappingTutorial/scrap.py
Traceback (most recent call last):
File "/Users/mikecallahan/PycharmProjects/scrappingTutorial/scrap.py", line 5, in <module>
driver = webdriver.Chrome()
File "/Users/mikecallahan/PycharmProjects/scrappingTutorial/venv/lib/python3.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
service_log_path, service, keep_alive)
File "/Users/mikecallahan/PycharmProjects/scrappingTutorial/venv/lib/python3.7/site-packages/selenium/webdriver/chromium/webdriver.py", line 90, in __init__
self.service.start()
File "/Users/mikecallahan/PycharmProjects/scrappingTutorial/venv/lib/python3.7/site-packages/selenium/webdriver/common/service.py", line 105, in start
raise WebDriverException("Can not connect to the Service %s" % self.path)
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver
Process finished with exit code 1
and this is the code
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element(By.NAME, "q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()
It ran one time but then stopped and I researched the issue im having and came up with that. Can someone more knowledgeable on this specific issue fill me in a little more before I just do this?