forked from up1/course-robotframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarad.txt
55 lines (44 loc) · 1.76 KB
/
tarad.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
*** Settings ***
Library Selenium2Library
Test Teardown Close All Browsers
*** Testcases ***
Buy product from TARAD.com
เลือกสินค้า
Buy with non-member
Choose payment channel with Counter Service
Fill in address and shipping information
#Validate data in summary page
*** Keywords ***
เลือกสินค้า
Open Browser http://www.tarad.com/product/6193631
Maximize Browser Window
#Select Radio Button option_id 169991
#Select From List By Index product_qty 1
Click Button f_buy
Wait Until Page Contains Element xpath=//div[@class='getitem4']/span[@class='black-title']
#Element Text Should Be xpath=//div[@class='getitem4']/span[@class='black-title'] 2 ชิ้น
Click Element xpath=//div[@class='getitem8']/a
Buy with non-member
#Title Should Be dressuphouse
#Checkbox Should Be Selected check_guest_register
#Unselect Checkbox check_guest_register
Click Button สั่งซื้อทันที
Choose payment channel with Counter Service
Click Element xpath=//li[@id='counter-service']/a
Set Selenium Speed 3
Click Button next-btn
Set Selenium Speed 0.5
Fill in address and shipping information
Input Text send_firstname สมเกียรติ
Input Text send_lastname ปุ๋ยสูงเนิน
Input Text send_address ที่อยู่จัดส่ง
Select From List By Index send_province 2
Set Selenium Speed 2 second
Select From List By Index send_city 5
Set Selenium Speed 0.5 second
Input Text send_district xxxzxx
Input Text send_email [email protected]
Input Text send_mobile 0868696209
Set Selenium Speed 3 second
Click Button next-btn
Set Selenium Speed 0.5 second