removed the chromedriver dependancy

This commit is contained in:
harismuneer 2018-08-23 17:53:33 +05:00
parent 76d87a3cdb
commit 84e5b5b929
3 changed files with 3 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View file

@ -599,13 +599,11 @@ def login(email, password):
# Code to disable notifications pop up of Chrome Browser
options.add_argument("--disable-notifications")
options.add_argument("--disable-infobars")
options.add_argument("--mute-audio")
# options.add_argument("headless")
# initialization
if platform.system() != "Windows":
driver = webdriver.Chrome(executable_path=os.getcwd() + "/chromedriver", chrome_options=options)
else:
driver = webdriver.Chrome(executable_path=os.getcwd() + "/chromedriver.exe", chrome_options=options)
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://en-gb.facebook.com")
driver.maximize_window()