Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpingchu committed Jun 30, 2021
1 parent 7c82b98 commit 814a243
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pchome_autobuy.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ def main():
### 前往購物車 ###
driver.get("https://ecssl.pchome.com.tw/sys/cflow/fsindex/BigCar/BIGCAR/ItemList")

### 注意!若有使用 CHROME_PATH 記住登入資訊,第二次執行時請記得註解掉登入這行!
### 登入帳戶 ###
# 若有使用 CHROME_PATH 記住登入資訊
# 第二次執行時請記得註解掉這行!!
login()

### 前往結帳 (一次付清) ### (要使用 JS 的方式 execute_script 點擊)
Expand Down Expand Up @@ -124,7 +123,7 @@ def main():
button = driver.find_element_by_xpath("//a[@id='warning-timelimit_btn_confirm']")
driver.execute_script("arguments[0].click();", button)

# ## 注意!若帳號有儲存付款資訊的話,這七行請註解掉會更快
### 注意!若帳號有儲存付款資訊的話,不需要再次填入身分證字號和出生年月日,這 7 行請註解掉會更快
try:
input_info(xpaths['BuyerSSN'], BuyerSSN)
input_info(xpaths['BirthYear'], BirthYear)
Expand All @@ -136,8 +135,8 @@ def main():
### 填入信用卡背面安全碼 3 碼 (multi_CVV2Num) ###
input_info(xpaths['multi_CVV2Num'], multi_CVV2Num)

### 注意!若帳號有儲存付款資訊的話,不需要再次勾選,請註解掉!
### 勾選同意 ###
## 注意!若帳號有儲存付款資訊的話,請註解掉這行!
click_button(xpaths['check_agree'])

### 送出訂單 ### (要使用 JS 的方式 execute_script 點擊)
Expand Down

0 comments on commit 814a243

Please sign in to comment.