---
# System prepended metadata

title: Selenium test

---

# Selenium test

```python=
from selenium import webdriver

url='https://www.google.com.tw'


# 選項一：把 webdriver 檔案放在和此python檔案同一資料夾下
# driver=webdriver.Chrome()

# 選項二：填寫 webdriver 路徑
# driver=webdriver.Chrome(executable_path=r'/usr/local/bin/chromedriver')

driver.get(url)

```