Skip to content

Commit 87682be

Browse files
committed
Driver init fix.
1 parent 60eba9e commit 87682be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def load_driver(self):
4646
if config.os_name == 'Windows':
4747
self.driver = webdriver.Chrome(executable_path=r'C:\Users\Nityam\AppData\Local\Programs\Python\Python39\chromedriver.exe',
4848
options=options)
49-
self.driver = webdriver.Chrome(options=options)
49+
else:
50+
self.driver = webdriver.Chrome(options=options)
5051

5152
# Open WhatsApp URL in chrome browser
5253
self.driver.get("https://web.whatsapp.com")

0 commit comments

Comments
 (0)