xxxxxxxxxx
I.goTo("https://www.bostonglobe.com/")
UI.context(".sign_in_settings_container", ()=>{
I.click("Search")
})
//Search for an article
I.fill("Search The Boston Globe", "Climate Change")
I.pressEnter()
I.click("Part of the solution to climate change is nuclear power")
I.click("Close")
//Verify if text is present and if we're in the correct page
I.see("Better Active Today than Radioactive Tomorrow")
I.amAt("https://www.bostonglobe.com/2022/07/18/opinion/part-solution-climate-change-is-nuclear-power/?p1=BGSearch_Overlay_Results")
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!
24s (10s)
1.
[start of test]
2.
I go to "https://www.bostonglobe.com/"
8.3s
3.
I click "Search"
0.3s
4.
I fill "Search The Boston Globe": "Climate Change"
0.9s
5.
I press "Enter"
6.
I click "Part of the solution to climate change is nuclear power"
7.
I click "Close"
8.
I see "Better Active Today than Radioactive Tomorrow"
0.1s
9.
I am at "https://www.bostonglobe.com/2022/07/18/opinion/part-solution-climate-change-is-nuclear-power/?p1=BGSearch_Overlay_Results"
10.
[end of test]