Untitled
unknown
plain_text
2 months ago
871 B
2
Indexable
def iniciar_driver(): chrome_options = Options() arguments = ['--lang=pt-BR', '--window-size=1300,1000', '--incognito'] for argument in arguments: chrome_options.add_argument(argument) chrome_options.add_experimental_option('prefs', { 'download.prompt_for_download': False, 'profile.default_content_setting_values.notifications': 2, 'profile.default_content_setting_values.automatic_downloads': 1, }) driver = webdriver.Chrome(service=ChromeService( ChromeDriverManager().install()), options=chrome_options) wait = WebDriverWait( driver, 10, poll_frequency=1, ignored_exceptions=[ NoSuchElementException, ElementNotVisibleException, ElementNotSelectableException, ] ) return driver, wait
Editor is loading...
Leave a Comment