Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (52 sloc) 1.82 KB
// 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.
You can’t perform that action at this time.