Skip to content

Commit 5f8bd18

Browse files
fixes
1 parent cdc027d commit 5f8bd18

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

main.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from selenium import webdriver
2+
from selenium.webdriver.chrome.service import Service
3+
from selenium.webdriver.chrome.options import Options
4+
from webdriver_manager.chrome import ChromeDriverManager
5+
6+
chrome_options = Options()
7+
# Important Arguments won't eun without them in Gitpod
8+
chrome_options.add_argument("--disable-dev-shm-usage")
9+
chrome_options.add_argument("--headless")
10+
11+
# Setup ChromeDriver
12+
service = Service(ChromeDriverManager().install())
13+
driver = webdriver.Chrome(service=service, options=chrome_options)
14+
15+
driver.get("https://www.example.com")
16+
print(driver.title)
17+
18+
driver.quit()

0 commit comments

Comments
 (0)