We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc027d commit 5f8bd18Copy full SHA for 5f8bd18
main.py
@@ -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