Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6659c870b8 |
@@ -49,8 +49,10 @@ chrome_options = webdriver.ChromeOptions()
|
|||||||
# Verhindert das der Chromedriver log angezeigt wird.
|
# Verhindert das der Chromedriver log angezeigt wird.
|
||||||
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
|
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
|
||||||
chrome_options.binary_location = chrome_binary
|
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)
|
# Ö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
|
# Erstelle eine Session mit Chrome und den vorher definierten Einstellungen
|
||||||
driver = webdriver.Chrome(options=chrome_options)
|
driver = webdriver.Chrome(options=chrome_options)
|
||||||
@@ -176,3 +178,5 @@ except TimeoutException:
|
|||||||
|
|
||||||
except TimeoutException:
|
except TimeoutException:
|
||||||
print("The 'Open Lucky Pot' button was not found within 10 seconds. Exiting...")
|
print("The 'Open Lucky Pot' button was not found within 10 seconds. Exiting...")
|
||||||
|
|
||||||
|
driver.quit()
|
||||||
Reference in New Issue
Block a user