I am getting error on CentOS while running python selenium based test cases. How can I overcome this issue?
Error is :
Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
I am using below code in my main python file.
self.options = Options()
self.options.set_headless(headless=True)
self.driver = webdriver.Chrome(options=self.options, executable_path='./chromedriver')
尝试使用.exe
给出完整路径:
self.driver = webdriver.Chrome(options=self.options, executable_path='./chromedriver.exe')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.