Hi
@Sanaa FallahWhen I made this exercise I create two elements for the two errors that you can get in this application.
- Invalid login
![34306.png 34306.png](/t5/image/serverpage/image-id/34368i70B3F05E308E22E7/image-size/large?v=v2&px=999)
- No username or password set
![34307.png 34307.png](/t5/image/serverpage/image-id/34372iFEED0BC972743B25/image-size/large?v=v2&px=999)
If you spy the entry Window, you can get the window no matter what mistake you made.
But, for this exercise, I think is better to spy the complete label and have diferent ways in your code to catch correctly the error. In my case:
(as you can read, in the Wait Stage i control every possible path that I received when I press the login button
![34308.png 34308.png](/t5/image/serverpage/image-id/34373iB59A03598035ADCA/image-size/large?v=v2&px=999)
Hope this helps you.
See you in the community, bye
🙂
------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
634726270
------------------------------