'On Element Appear' Warning: Argument 'Condition' of activity 'if' is bound to an expression that contains activity 'InvokeMethod<Boolean>'

I have an automation with ‘On Element Appear’ activity.
It worked well for a very long time but recently it issues a warning:
Argument ‘Condition’ of activity ‘if’ is bound to an expression that contains activity ‘InvokeMethod’…

Please advise.

can you please show us the proparities panel

Hi,

Instead of using the On element appear activity use the element exist activity or Check app state activity.

Sure:

you are right it is because of the modern design experience. Now on element appear is internal property of use application/browser activity. If we want use on element appear as separate activity we have to switch back to classic. Thanks.

This post will help you

Flowchart
    └─ On Element Appear
    └─ InvokeMethod
    └─ Flow Decision (Condition)
        ├─ True Sequence
        │   └─ ... (Actions for True condition)
        └─ False Sequence
            └─ ... (Actions for False condition)

To add some information to this thread, which I found while searching the same error message.

This happened to me in an automation that uses our own custom libraries, and those libraries use the classic activities mentioned above. So it’s not just if you use those activities inside your project, it’s also if any custom libraries you use have those activities in them.

However, being that it’s just a warning, and the automation runs fine, I’m not going to make any changes just to make an erroneous message go away.

I tried to use it within application/browser activity, but still the warning persist.

1 Like