Wait for Page Load Complete doesn't work in Salesforce

When automating in Salesforce (an admittedly awful interface to automate in) the “wait for page load complete” doesn’t work. This is likely due to SF being a mess of nested frames. Chrome must report back to UiPath that it’s complete, before the frames and objects inside them have loaded. I’m having a problem where UiPath is detecting that page load is complete (when it isn’t) and trying to click the Form Generation button. You can see here that it has put the mouse pointer over it:

But by the time the Click actually happens, additional page elements have loaded and now there is a “Printable View” button where the Form Generation button had been, resulting in a click on the wrong button:

image

I tried simulate but it doesn’t work on these buttons. Chromium API hasn’t worked in Salesforce for months, one of their recent releases broke it. So I’m left with using hardware events.

Any ideas on how to solve this? I hate to use hard-coded Delay activities, but that may be my only hope.

@postwick

check which frame or element is loading last and try to use check app state on that

if visible on screen use visibility property as well

simulate or chromium api works whn selector would be a tag A or button it would work..check if you find those tags..generally its difficult sometimes nested tags would be present check if they are

cheers

Simulate does not work on these buttons, and Salesforce broke chromium months ago with one of their releases. Salesforce is an awful app.

The order of loading isn’t predictable. Again, it’s an awful app.

1 Like