Skip to content

Commit c0b88d8

Browse files
Vishal PalasgaonkarVishal Palasgaonkar
Vishal Palasgaonkar
authored and
Vishal Palasgaonkar
committed
links
1 parent bf986e1 commit c0b88d8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

9_links.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import time
2+
3+
from selenium import webdriver
4+
from selenium.webdriver.common.by import By
5+
6+
7+
driver = webdriver.Safari()
8+
driver.set_window_size(1350, 768)
9+
10+
driver.get("https://www.google.com/doodles")
11+
time.sleep(2)
12+
13+
links = driver.find_elements(By.TAG_NAME, "a")
14+
# print("links: ", links)
15+
# for link in links:
16+
# print(link.text)
17+
18+
driver.find_element(By.LINK_TEXT, "About").click()
19+
driver.find_element(By.PARTIAL_LINK_TEXT, "Archi").click()
20+
time.sleep(2)

0 commit comments

Comments
 (0)