---
# System prepended metadata

title: Untitled

---

```
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys

browser = webdriver.Chrome('./chromedriver') # browser 路徑

browser.get("https://ssoshib.fhda.edu/idp/profile/cas/login?execution=e1s1")

btn = browser.find_element_by_xpath("/html/body/div[2]/div/div/p[4]/a") # 找xpath

btn.click()

time.sleep(5)

account = browser.find_element_by_xpath("/html/body/div[2]/div/div[1]/div[1]/form/div[1]/div/div/input")

account.send_keys("oscar wang") # 輸入帳號

password = browser.find_element_by_xpath("/html/body/div[2]/div/div[1]/div[1]/form/div[2]/div/div/input")

password.send_keys("xxx") # 輸入密碼

btn = browser.find_element_by_xpath("/html/body/div[2]/div/div[1]/div[1]/form/button[1]")

btn.click()

time.sleep(5)
```