xxxxxxxxxx
//First go to website
I.goTo("https://www.fedex.com/en-ph/home.html")
//Choose Location
I.see("United Kingdom")
I.click("English")
//Accept Cookies
I.click("Accept All Cookies")
//Fill in where to ship
I.click("Rate & Transit Times")
I.see("Calculate FedEx® shipping rates")
I.fill("From", "United Kingdom")
I.click("London")
I.wait(5)
I.fill("To", "Singapore")
I.click("Raffles Avenue")
I.wait(5)
//Choose packaging and fill package weight
I.select("Packaging", "FedEx Box")
I.select("No. of packages", "5")
I.fill("Weight Per Package", "3")
I.click("Show Rates")
I.see("Arrives On")
I.see("FedEx International Economy®")
I.click(".fdx-c-icon")
I.see("Estimated Total")
I.see("£485.17")
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!
44s (17s)
1.
[start of test]
2.
I go to "https://www.fedex.com/en-ph/home.html"
4.9s
3.
I see "United Kingdom"
0.1s
4.
I click "English"
5.
I click "Accept All Cookies"
6.
I click "Rate & Transit Times"
7.
I see "Calculate FedEx® shipping rates"
0.6s
8.
I fill "From": "United Kingdom"
0.7s
9.
I click "London"
10.
I wait for 5s
5.0s
11.
I fill "To": "Singapore"
0.5s
12.
I click "Raffles Avenue"
13.
I wait for 5s
5.0s
14.
I select "Packaging: FedEx Box"
0.2s
15.
I select "No. of packages: 5"
0.1s
16.
I fill "Weight Per Package": "3"
0.2s
17.
I click "Show Rates"
18.
I see "Arrives On"
19.
I see "FedEx International Economy®"
20.
I click ".fdx-c-icon"
21.
I see "Estimated Total"
22.
I see "£485.17"
23.
[end of test]