cancel
Showing results for 
Search instead for 
Did you mean: 

Consolidation exercise - Attributes

Anonymous
Not applicable
So in 'Label: Error Message element', the exercise marked 'window text' attribute as equals to a blank value,
my question is why didn't use equals to dynamic since the text will still change depending on the error??

34310.png



------------------------------
Sanaa Fallah
------------------------------
1 REPLY 1

Hi @Sanaa Fallah

When I made this exercise I create two elements for the two errors that you can get in this application.
- Invalid login
34306.png
- No username or password set
34307.png

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


Hope this helps you.

See you in the community, bye 🙂



------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
634726270
------------------------------