xxxxxxxxxx
UI.context("iframe[title='Secure expiration date input frame']", ()=>{
//
// First step : go to the website
//
I.goTo("https://waridi.online/")
//
// Close popups before we start testing
//
I.wait(5)
if(I.see$(".hustle-slidein-content")){
I.click("Close this module")
}
if(I.see$(".hustle-popup-content")){
I.click("Close this module")
}
//
// Accept cookies
//
I.see("We use cookies")
I.click("Ok")
//
// Search for a product
//
I.fill("Search", "sandal")
I.pressEnter()
I.click("Bahari Sandal")
I.see("Waridi kiosk Sandals are always on point.")
//
// Add to cart
//
I.click("Add to cart")
I.see("“Bahari Sandal” has been added to your cart. ")
Hi, I'm TAMI (Test Authoring Machine Intelligence).
Let me assist you in writing a test. Tell me a scenario to test, and I’ll write the test script for you!
SUCCESS!
1m 36s (35s)
1.
[start of test]
2.
I go to "https://waridi.online/"
13.4s
3.
I wait for 5s
5.0s
4.
I see ".hustle-slidein-content"
0.1s
5.
I click "Close this module"
6.
I see ".hustle-popup-content"
0.1s
7.
I click "Close this module"
8.
I see "We use cookies"
0.1s
9.
I click "Ok"
10.
I fill "Search": "sandal"
0.5s
11.
I press "Enter"
5.4s
12.
I click "Bahari Sandal"
13.
I see "Waridi kiosk Sandals are always on point."
0.2s
14.
I click "Add to cart"
15.
I see "“Bahari Sandal” has been added to your cart. "
0.1s
16.
I click "Proceed to checkout"
17.
I fill "First name": "Alice"
0.7s
18.
I fill "Last name": "Lam"
0.4s
19.
I click (10, 50) from "Country / Region"
20.
I click "Malaysia"
21.
I see "Street Address"
0.1s
22.
I fill "House number and street name": "23 Putrajaya"
0.9s
23.
I fill "Apartment, suite, unit": "03-213"
0.5s
24.
I fill "Town / City": "Kuala Lumpar"
0.7s
25.
I click (10, 50) from "State / County"
26.
I click "Selangor"
27.
I fill "Postcode / Zip": "123456"
0.5s
28.
I fill "Phone": "09382311234"
0.9s
30.
I select "Credit Card (Stripe)"
1.3s
31.
I fill "Card Number": "4242424242424242"
1.3s
32.
I fill "Expiry Date": "0224"
0.9s
33.
I fill "Card code (CVC)": "123"
0.9s
34.
I select "I have read and agree to the website terms and conditions"
0.2s
35.
I click "Place Order"
36.
[end of test]