Seeing an intermittent error when attempting to script an authentication flow for a WEB portal:
AppNeta
no such element: Unable to locate element
error for the clickandWait
indicates that something in the xpath specified is dynamic:Looking at the error, the xpath for the clickAndWait
element appears to be targeting the Continue button on the portal.
Utilising UI.vision, analysing the UI flow, the xpath is actually:
xpath=//*[@id="root"]/div/div[2]/div/div[2]/form/div/div[3]/div/button/span
Use a tool such as UI.vision that can help map out the web page