xxxxxxxxxx
//Navigate to site
I.goTo("https://www.tentree.ca/")
//Choose something to buy and checkout
I.hoverOn("Women")
I.click("New Arrivals")
I.click("Golden Spruce Crop T-Shirt")
I.click("HI RISE GREY HEATHER")
I.click("M")
I.click("Add To Cart")
I.click("Checkout")
//Fill in needed details
I.fill("Email", "[email protected]")
I.fill("First Name", "Samantha")
I.fill("Last Name", "Smith")
I.fill("Address", "Sample Address")
I.fill("City", "Sample City")
I.select("Province", "Ontario")
I.fill("Postal Code", "M3H 0C3")
I.fill("Phone", "1234567890")
I.click("Continue To Shipping")
I.click("Proceed")
//Choose a shipping method
I.click("Standard Shipping")
I.click("Continue to payment")
//Choose payment method and fill in card information
I.click("Credit Card")
UI.context("iframe[title='Field container for: Card number']", ()=>{
I.fill("Card Number", "4242 4242 4242 4242")
})
UI.context("iframe[title='Field container for: Name on card']", ()=>{
I.fill("Name on card", "Samantha Smith")
})
UI.context("iframe[title='Field container for: Expiration date (MM / YY)']", ()=>{
I.fill("Expiration date (MM / YY)", "12/27")
})
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 43s (31s)
1.
[start of test]
2.
I go to "https://www.tentree.ca/"
5.6s
3.
I hover on "Women"
1.0s
4.
I click "New Arrivals"
5.
I click "Golden Spruce Crop T-Shirt"
6.
I click "HI RISE GREY HEATHER"
7.
I click "M"
8.
I click "Add To Cart"
9.
I click "Checkout"
11.
I fill "First Name": "Samantha"
1.1s
12.
I fill "Last Name": "Smith"
0.9s
13.
I fill "Address": "Sample Address"
1.4s
14.
I fill "City": "Sample City"
1.4s
15.
I select "Province: Ontario"
0.3s
16.
I fill "Postal Code": "M3H 0C3"
0.9s
17.
I fill "Phone": "1234567890"
1.1s
18.
I click "Continue To Shipping"
19.
I click "Proceed"
20.
I click "Standard Shipping"
21.
I click "Continue to payment"
22.
I click "Credit Card"
23.
I fill "Card Number": "4242 4242 4242 4242"
1.6s
24.
I fill "Name on card": "Samantha Smith"
1.3s
25.
I fill "Expiration date (MM / YY)": "12/27"
0.9s
26.
I fill "Security Code": "123"
0.8s
27.
I click "Pay Now"
28.
I wait for 10s
10.0s
29.
I see "Card was declined"
0.2s
30.
[end of test]