scripts/afu/test.py

25 lines
650 B
Python
Raw Normal View History

2024-06-12 19:40:12 +02:00
#!/usr/bin/python3
#import os
#import re
#import subprocess
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromiumService
#from webdriver_manager.chrome import ChromeDriverManager
#from webdriver_manager.core.os_manager import ChromeType
print('We try to connect to https://kuschel.at and get an answer "Family Kuschel and friends"')
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome(options=options)
driver.get("https://kuschel.at")
print(driver.title)
driver.close()