xxxxxxxxxxUI.context("iframe[title='Field container for: Expiration date (MM / YY)']", ()=>{I.goTo("https://uk.gear.blizzard.com/")I.click("Accept All Cookies")//Choose categoryI.hoverOn("Shop By Game")I.click("Starcraft")//Choose what to buyI.click("StarCraft J!NX Black Flatbill Snapback Hat")I.see("This J!NX StarCraft Snapback Hat is the perfect accessory to any outfit.")I.click("Add To Cart")//Go to cart and checkoutI.click("View Cart")I.see("StarCraft J!NX Black Flatbill Snapback Hat")I.click("Checkout Securely")//Fill in detailsI.fill("Email", "[email protected]")I.fill("First Name", "John")I.fill("Last Name", "Kent")I.select("Country/Region", "Singapore")I.fill("Postal Code", "650101")I.click("650101 SINGAPORE")I.fill("Address", "SIAN TUAN")I.click("SIAN TUAN AVENUE")I.fill("Phone", "123456789")I.click("Continue to shipping")//Choose Shipping MethodI.click("Standard International")I.click("Continue to payment")//Fill in card detailsUI.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']", ()=>{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 18s (21s)
1.
[start of test]
2.
I go to "https://uk.gear.blizzard.com/"
4.0s
3.
I click "Accept All Cookies"
4.
I hover on "Shop By Game"
0.8s
5.
I click "Starcraft"
6.
I click "StarCraft J!NX Black Flatbill Snapback Hat"
7.
I see "This J!NX StarCraft Snapback Hat is the perfect accessory to any outfit."
0.4s
8.
I click "Add To Cart"
9.
I click "View Cart"
10.
I see "StarCraft J!NX Black Flatbill Snapback Hat"
0.5s
11.
I click "Checkout Securely"
13.
I fill "First Name": "John"
0.4s
14.
I fill "Last Name": "Kent"
0.5s
15.
I select "Country/Region: Singapore"
0.2s
16.
I fill "Postal Code": "650101"
0.5s
17.
I click "650101 SINGAPORE"
18.
I fill "Address": "SIAN TUAN"
0.8s
19.
I click "SIAN TUAN AVENUE"
20.
I fill "Phone": "123456789"
0.7s
21.
I click "Continue to shipping"
22.
I click "Standard International"
23.
I click "Continue to payment"
24.
I fill "Card Number": "4242 4242 4242 4242"
1.7s
25.
I fill "Name on Card": "John Kent"
1.1s
26.
I fill "Expiration Date": "12/29"
1.1s
27.
I fill "Security Code": "123"
1.0s
28.
I click "Pay Now"
29.
I wait for 5s
5.0s
30.
I see "Card number is incorrect"
0.2s
31.
[end of test]