xxxxxxxxxx
I.goTo("https://ahrefs.com/")
I.click("Pricing")
I.see("Lite")
I.click("Subscribe")
I.select("Visa or Mastercard")
I.fill("Your email", "[email protected]")
I.click("I have read and I accept")
I.click("Continue")
I.wait(5)
I.scrollDown(900000)
I.wait(5)
I.click("Accept and continue")
UI.context("#cb-frame", ()=>{
//Enter Account Details
I.fill("First Name", "John")
I.fill("Last Name", "Kent")
I.pressEnter()
I.wait(5)
//Enter Billing Address
I.fill("Address Line 1", "Singapore Island Road")
I.click("Leesburg")
I.fill("City", "Florida")
I.fill("State", "123")
I.pressEnter()
I.pressEnter()
I.wait(5)
//Enter Payment Details
I.fill("Card Number", "4242 4242 4242 4242")
I.fill("Expiry", "12/29")
I.fill("CVV", "123")
I.wait(5)
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 8s (46s)
1.
[start of test]
2.
I go to "https://ahrefs.com/"
1.6s
3.
I click "Pricing"
4.
I see "Lite"
1.3s
5.
I click "Subscribe"
6.
I select "Visa or Mastercard"
1.1s
8.
I click "I have read and I accept"
9.
I click "Continue"
10.
I wait for 5s
5.0s
11.
I scroll down 900000
12.
I wait for 5s
5.0s
13.
I click "Accept and continue"
14.
I fill "First Name": "John"
2.8s
15.
I fill "Last Name": "Kent"
0.2s
16.
I press "Enter"
0.1s
17.
I wait for 5s
5.0s
18.
I fill "Address Line 1": "Singapore Island Road"
0.7s
19.
I click "Leesburg"
0.1s
20.
I fill "City": "Florida"
0.3s
21.
I fill "State": "123"
0.2s
22.
I press "Enter"
23.
I press "Enter"
24.
I wait for 5s
5.0s
25.
I fill "Card Number": "4242 4242 4242 4242"
0.6s
26.
I fill "Expiry": "12/29"
0.3s
27.
I fill "CVV": "123"
0.2s
28.
I wait for 5s
5.0s
29.
I see "Ahrefs Lite - Monthly"
30.
I press "Enter"
31.
I wait for 5s
5.0s
32.
I press "Enter"
33.
I wait for 5s
5.0s
34.
I click "Pay"
0.1s
35.
[end of test]