xxxxxxxxxxI.goTo("https://example.uilicious.com/bomb_squad_simulator.html")I.click("Cut the black wire")//Validate the alert and the alert messageI.seeAlert()I.seeAlert("Are you sure you want to cut the black wire?")//Cancel the alert promptI.cancelAlert()I.see("You hesistated.")I.click("Cut the black wire")I.seeAlert("Are you sure you want to cut the black wire?")//Accept the alert prompt and validate the messageI.acceptAlert()I.seeAlert("Congratulations! The bomb is safely disarmed!")I.acceptAlert()//Fill in alert promptI.seeAlert("What's your name dear hero?")I.fillAlert("Jane")I.acceptAlert()I.see("The bomb is disarmed. Hurray, Jane saved the day!")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!
6s (2s)
1.
[start of test]
2.
I go to "https://example.uilicious.com/bomb_squad_simulator.html"
1.4s
3.
I click "Cut the black wire"
4.
I see alert
5.
I see alert: "Are you sure you want to cut the black wire?"
6.
I cancel alert
7.
I see "You hesistated."
8.
I click "Cut the black wire"
9.
I see alert: "Are you sure you want to cut the black wire?"
10.
I accept alert
11.
I see alert: "Congratulations! The bomb is safely disarmed!"
12.
I accept alert
13.
I see alert: "What's your name dear hero?"
14.
I fill alert: "Jane"
15.
I accept alert
16.
I see "The bomb is disarmed. Hurray, Jane saved the day!"
17.
[end of test]