Web App Experience Monitoring script intermittently generating an Error for web portal
search cancel

Web App Experience Monitoring script intermittently generating an Error for web portal

book

Article ID: 259941

calendar_today

Updated On:

Products

AppNeta

Issue/Introduction

Seeing an intermittent error when attempting to script an authentication flow for a WEB portal:

Environment

AppNeta

Cause

The no such element: Unable to locate element error for the clickandWait indicates that something in the xpath specified is dynamic:

//*[@id="root"]/div/div[2]/form/div/div[4]/div/button

Resolution

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