xxxxxxxxxxI.select("I’d like to receive marketing information and updates about Samsung’s products and service by email from Samsung Electronics (UK) Limited (optional)")// Navigate to siteI.goTo("https://www.samsung.com/")//First We Accept CookiesI.click("Accept All")//Proceed on buying an itemI.click("Open Menu")I.click("Mobile")I.click("Featured")I.see("Galaxy S22 Ultra")I.click("Galaxy S22 Ultra")I.click("Buy now")I.wait(5)I.click("Continue")I.scrollDown(400)I.click("Checkout")//Fill In needed detailsI.fill("First Name", "John")I.fill("Last Name", "Kent")I.fill("Email", "[email protected]")I.fill("Mobile Number", "1234567890")I.fill("Postcode", "EC1A 2BN")I.click("1st Translation Co Ltd")I.click("Order Summary")I.scrollDown(300)I.click("Continue")//Choose a delivery option and slotI.click("Pick a delivery slot")UI.context(".modal-content", ()=>{ I.click("Continue")})I.wait(5)I.scrollDown(350)I.click("Continue")//Choose a payment methodHi, 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 50s (39s)
1.
[start of test]
2.
I go to "https://www.samsung.com/"
2.5s
3.
I click "Accept All"
4.
I click "Open Menu"
5.
I click "Mobile"
6.
I click "Featured"
7.
I see "Galaxy S22 Ultra"
0.4s
8.
I click "Galaxy S22 Ultra"
9.
I click "Buy now"
10.
I wait for 5s
5.0s
11.
I click "Continue"
12.
I scroll down 400
0.1s
13.
I click "Checkout"
14.
I fill "First Name": "John"
2.3s
15.
I fill "Last Name": "Kent"
1.2s
17.
I fill "Mobile Number": "1234567890"
1.3s
18.
I fill "Postcode": "EC1A 2BN"
1.1s
19.
I click "1st Translation Co Ltd"
20.
I click "Order Summary"
21.
I scroll down 300
22.
I click "Continue"
23.
I click "Pick a delivery slot"
24.
I click "Continue"
25.
I wait for 5s
5.0s
26.
I scroll down 350
27.
I click "Continue"
28.
I click "Credit or Debit Card"
29.
I wait for 5s
5.0s
30.
I fill "Card Number": "4242 4242 4242 4242"
1.8s
31.
I fill "Name On Card": "John Kent"
2.1s
32.
I click "MM/YY"
1.8s
33.
I type "12/29"
0.1s
34.
I type "123"
0.1s
35.
I select "I’d like to receive marketing information and updates about Samsung’s products and service by email from Samsung Electronics (UK) Limited (optional)"
1.5s
36.
I select "I Agree to the Samsung Electronics(UK) Limited"
0.3s
37.
I click "Place Order"
38.
I wait for 5s
5.0s
39.
I see "Something went wrong"
0.1s
40.
I see "Your payment was unable to process. Please try again or contact your payment provider."
0.1s
41.
[end of test]