While true:
xvfb = Xvfb(width=1920, height=1920) xvfb.xvfb_cmd.append('-noreset') log("starting Xvfb: " , xvfb.xvfb_cmd) xvfb.start()
try: options = Options() options.add_argument("--disable-web-security") options.add_argument("--webdriver-logfile=webdrive.log") dc = DesiredCapabilities.CHROME dc['loggingPrefs'] = {'browser': 'ALL'} log("preferences set, attempting to start driver") driver = webdriver.Chrome(chrome_options=options, desired_capabilities=dc) log("driver started, attempting to load page") driver.get(url);
log('loaded the page') data = driver.get_screenshot_as_base64()
driver.quit()
xvfb.stop()
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a7adba54-1a42-4577-ae01-540b29b6a9d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.