I am trying to click on Login link, and ai() function is clicking on Register link in zerostep playwright

I am trying to click on Login link of the webapp
http://eaapp.somee.com/
through zerostep playwright with the script “await ai(‘Click on the Login link in the header’, { page, test })”
This clicks on the Register button instead of Login. How can I debug that what went wrong here?

I tried printing the logs of ai(functions) running, the logs I am getting are

ws send: {“type”:”task-start”,”packageVersion”:”v0.1.5″,”taskId”:”018c5db5-004b-7bfe-ad1c-47850643b9a8″,”task”:”Verify that title contains Execute Automation”,”snapshot”:{“dom”:”{“documents”:[{“documentURL”:0,”title”:1,”baseURL”:0,”contentLanguage”:
< ws recv: {“type”:”task-complete”,”taskId”:”018c5db5-004b-7bfe-ad1c-47850643b9a8″,”model”:”gpt-3.5-turbo”,”wasSuccessful”:true,”result”:{“assertion”:false}}
ws send: {“type”:”task-start”,”packageVersion”:”v0.1.5″,”taskId”:”018c5db5-1381-740c-86b6-981c04b62564″,”task”:”Hover on to Login link”,”snapshot”:{“dom”:”{“documents”:[{“documentURL”:0,”title”:1,”baseURL”:0,”contentLanguage”:-1,”encodingName”:2,
< ws recv: {“type”:”command-request”,”taskId”:”018c5db5-1381-740c-86b6-981c04b62564″,”index”:0,”name”:”hoverElement”,”arguments”:{“id”:”73″}}
ws send: {“type”:”command-response”,”packageVersion”:”v0.1.5″,”taskId”:”018c5db5-1381-740c-86b6-981c04b62564″,”index”:0,”result”:”null”}
< ws recv: {“type”:”task-complete”,”taskId”:”018c5db5-1381-740c-86b6-981c04b62564″,”model”:”gpt-3.5-turbo”,”wasSuccessful”:true,”result”:{“actions”:[“Hover”]}}
ws send: {“type”:”task-start”,”packageVersion”:”v0.1.5″,”taskId”:”018c5db5-1b0c-7508-9555-141536f29a1b”,”task”:”Click on the Login link in the header”,”snapshot”:{“dom”:”{“documents”:[{“documentURL”:0,”title”:1,”baseURL”:0,”contentLanguage”:-1,”enc
< ws recv: {“type”:”command-request”,”taskId”:”018c5db5-1b0c-7508-9555-141536f29a1b”,”index”:1,”name”:”clickElement”,”arguments”:{“id”:”73″}}
ws send: {“type”:”command-response”,”packageVersion”:”v0.1.5″,”taskId”:”018c5db5-1b0c-7508-9555-141536f29a1b”,”index”:1,”result”:”null”}
< ws recv: {“type”:”task-complete”,”taskId”:”018c5db5-1b0c-7508-9555-141536f29a1b”,”model”:”gpt-3.5-turbo”,”wasSuccessful”:true,”result”:{“actions”:[“Click”]}}
ws send: {“type”:”task-start”,”packageVersion”:”v0.1.5″,”taskId”:”018c5db5-24f0-7453-b031-966813fefde3″,”task”:”Fill the fields with realistic values”,”snapshot”:{“dom”:”{“documents”:[{“documentURL”:0,”title”:1,”baseURL”:0,”contentLanguage”:-1,”enc

  • 1

    What’s await ai('Click on the Login link in the header', { page, test })? Please share a minimal reproducible example showing your full code. I’d use page.getByText("Login", {exact: true}).click().

    – 




Leave a Comment