# 使用 ID 查找搜尋框並輸入文字
element = driver.find_element_by_id('search_box')
element.send_keys('Selenium 教學')
# 使用不同方式查找特定元素
fruits = driver.find_element(By.CSS_SELECTOR,"#fruits .tomatoes")
tomato = fruits.find_element(By.CLASS_NAME,"tomatoes")
plants = driver.find_elements(By.TAG_NAME, "li")
element = driver.find_element(By.XPATH, '//ul')