Last active
November 12, 2021 08:46
-
-
Save shanehh/962130dfef06f828d3b30e83d4ad15a8 to your computer and use it in GitHub Desktop.
ChromeDriverManager + helium + no first run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import helium as H | |
from selenium import webdriver | |
from webdriver_manager.chrome import ChromeDriverManager | |
def main(): | |
opts = webdriver.ChromeOptions() | |
opts.add_argument("--no-first-run") | |
opts.add_argument("--no-service-autorun") | |
opts.add_argument("--no-default-browser-check") | |
opts.add_argument("--password-store=basic") | |
with webdriver.Chrome(ChromeDriverManager().install()) as driver: | |
H.set_driver(driver) | |
breakpoint() | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment