Skip to content

Instantly share code, notes, and snippets.

@ganigithub
Last active June 21, 2022 08:12
Show Gist options
  • Save ganigithub/9e782a4f273d7c2b7d388a93fd374ffe to your computer and use it in GitHub Desktop.
Save ganigithub/9e782a4f273d7c2b7d388a93fd374ffe to your computer and use it in GitHub Desktop.
# launch chrome and open zerodha website
from selenium import webdriver
from time import sleep
from pyotp import TOTP
service = webdriver.chrome.service.Service(f'{webdriver_path}/chromedriver.exe')
service.start()
options = webdriver.ChromeOptions()
options = options.to_capabilities()
driver = webdriver.Remote(service.service_url, options)
driver.get(url)
driver.maximize_window()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment