How to program a macro if you dont know which screen will show up?

sometimes in a desktop app, there can be different screens that show up. This happens say if an app has remembered your login or not. Is it possible to program ui vision macro in an “if then” manner so that one can handle both cases ?


You can use if_v2 inside desktop automation to check the element

Please pass some links where some thing is explained properly.

Meaning using flow control / conditionals:

does this work for browser only or for desktop automation too? Havent found a working example of if ( picture ) then … else …end. The only example shown is for do repeatIf …,.end

Yes, you can do if (picture) or if (text). To start, have you checked out the demo macros? Sometimes it’s much easier understanding how it works before reading docs.