1 Commits
0.1 ... 0.2

View File

@@ -49,8 +49,10 @@ chrome_options = webdriver.ChromeOptions()
# Verhindert das der Chromedriver log angezeigt wird.
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
chrome_options.binary_location = chrome_binary
chrome_options.add_argument('--no-first-run')
chrome_options.add_argument('--no-sandbox')
# Öffnet den Chrome im Headless modus (Ohne Fenster)
#chrome_options.add_argument('--headless')
chrome_options.add_argument('--headless')
# Erstelle eine Session mit Chrome und den vorher definierten Einstellungen
driver = webdriver.Chrome(options=chrome_options)
@@ -176,3 +178,5 @@ except TimeoutException:
except TimeoutException:
print("The 'Open Lucky Pot' button was not found within 10 seconds. Exiting...")
driver.quit()