-
Notifications
You must be signed in to change notification settings - Fork 0
/
dominos
64 lines (52 loc) · 1.82 KB
/
dominos
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
56
57
58
59
60
61
62
63
64
// Step 1 - Visit URL
https://www.dominos.com.sg/
// Login variables. Replace with your own.
email = your-email-address
password = your-email-password
// Start order
echo "Start order"
// Step 2 - Login Details
echo "Login"
click login-btn
type login_email as `email`
type login_password as `password`
click //*[@id="sign_in_form"]/div[3]/div[1]/button
// Step 3 - Start Delivery Order
echo "Start delivery order"
wait
click /html/body/div[3]/section/div/div[2]/ul[2]/li
wait
click btnOrderDelivery
wait
// Step 4 - Hover over navigation and select pizza menu
echo "Select pizza menu"
hover /html/body/section/div[3]/div/div[2]/ul[1]/li[2]/a
click /html/body/section/div[3]/div/div[2]/ul[1]/li[2]/div[2]/a[2]
wait
// Step 5 - The best pizza. Classic Pepperoni!
echo "Select pizza"
click /html/body/div[3]/div[2]/div[2]/div/div[2]/div[4]/div[7]/div/div[1]/a
wait 2
// Step 6 - Select Extra Large Pizza Size and Crust type. So Hungry.
echo "Select Extra Large"
click /html/body/div[3]/div[2]/div[2]/div/div[2]/div[4]/div[7]/div/div[2]/div[2]/form/div[1]/div/div/ul/li[4]
wait 2
echo "Select Crust"
click /html/body/div[3]/div[2]/div[2]/div/div[2]/div[4]/div[7]/div/div[2]/div[2]/form/div[2]/div/div/ul/li
wait 2
// Step 7 - Add to cart
echo "Add to cart"
click /html/body/div[3]/div[2]/div[2]/div/div[2]/div[4]/div[7]/div/div[2]/div[2]/form/div[4]/div[2]/button
wait 2
// Step 8 - Checkout
echo "Checkout"
click /html/body/section/div[3]/div/div[2]/ul[2]/li[4]/ul/li[3]/a
wait
// Step 9 - Go straight to payment page
// Store delivery time to `orderTime` variable for push notifications
// For actual order, use the estimated delivery time on the order confirmation page.
echo "Make payment"
https://www.dominos.com.sg/mycart/payment
read payment-orderTime to orderTime
// Step 10 - Complete Order
// Insert the steps from order confirmation page here.