ADD test file
This commit is contained in:
parent
a9227b20b4
commit
d6d9d15c4f
24
afu/test.py
Executable file
24
afu/test.py
Executable 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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user