CA Application Synthetic Monitor (ASM)CA App Synthetic MonitorNIMSOFT CLOUD USER EXPERIENCE MONITOR
Issue/Introduction
The CA Recorder is not correctly recording the username and password when I am recording my site. Yet I can record a login on gmail with no issue.
Cause
Different type of forms for gmail and the site where this issue was found.
Environment
CA Recorder for ASM
Resolution
It was found that the page is using the Angular 2+ framework.
Because of that, it is not enough to just set the values to the inputs. Angular should update an inner model, which is based on input values. Change detection mechanism fires each time as the user clicks on inputs and presses the keys while entering data.
If wanting to enter the data programmatically, we also need to start change detection programmatically by dispatching the same events as users input.
You should add an assertion wait for the user name. That way any other steps added after the assertion would be taken only after the login is complete and the user name appears.