xxxxxxxxxxI.goTo("https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/live/")// the zoom buttons have an accessible label under the hood, so we can click them by referring to their labelsI.click("Zoom in")I.wait(1) // to take a screenshot after zoom inI.click("Zoom out")I.wait(1) // to take a screenshot after zoom in// the elements drawn on the map are hidden in the <canvas> element, so there's no way to target the element by label, xpath, or css// we can attempt to click on things on the map using click offsetsI.click("//canvas", 550, 480)I.see("Middle of nowhere")I.click("Next feature")I.wait(1) // to take a screenshot I.click("Previous feature")I.wait(1) // to take a screenshot I.click("Zoom to")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!
Hello!
You haven't ran a test yet.
Write a test in the editor,
and hit the "Run" button run the test.