ADD test file

This commit is contained in:
Thomas Kuschel 2024-06-12 19:40:12 +02:00
parent a9227b20b4
commit d6d9d15c4f

24
afu/test.py Executable file
View File

@ -0,0 +1,24 @@
#!/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()