i Tried using chromeoptions in python to open the browser, but am facing some issues ,i have given the executable path but also it is telling like that. New To Python With Selenium. Help Needed!!
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
My code :
from selenium import webdriver
import unittest
from selenium.webdriver.chrome.options import Options
class Amazon(unittest.TestCase):
def setUp(self):
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--disable-extensions")
self.driver = webdriver.Chrome(chrome_options=chrome_options,executable_path="F:\\chromedriver.exe")
def test_open_chrome(self):
self.driver.get("https://www.amazon.in/")
def tearDown(self):
self.driver.quit()
if __name__ == '__main__':
unittest.main()