cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chrisevans10
Regular Visitor

PAD causing the application to flicker (possibly changing focus on the window)

We've got a legacy application that we are using with PAD. It works fine in all areas for automation bar one window. To get to this window, you have to open two other windows first. PAD is detecting the appropriate UI elements that we need to fill in and is able to fill them in successfully.

 

However, when it is doing so, the application window flashes very rapidly and PAD seems to wait around 3-4 seconds per UI element before it fills it in. Just before PAD fills in the data in the UI element, the flashing stops. Then it fills in the UI element. Then the flashing starts again for 3-4 seconds for the next UI element.

 

My impression is that there is some sort of focus issue occurring between the main application window and this sub window and that there is some kind of built in timeout within PAD that once reached, it tries a different method to get to the UI element. I've attempted pre-focusing the correct window by clicking on it but this doesn't resolve it either.

 

Has anybody experienced anything like this before and any tips on what I might try to resolve?

 

Thanks

9 REPLIES 9
chrisevans10
Regular Visitor

As a follow up, I've recorded this video. You can see the flickering and how it seems to minimize/reopen the legacy application and then how this stops right before it begins inputting on the UI element chosen. I have also used inspect.exe to look at the path chosen for the UI elements and it is correct.

 

usersettings.gif

Pavel_NaNoi
Responsive Resident
Responsive Resident

Could be a number of things occurring, will need a bit more testing:

 - If you think its a focus issue, try using the "Focus window" action and aim it at the application, if it doesn't help, its probably not that.

 - Maybe the selectors are having a fit, try making them more generic by going into the first few ones and ticking some boxes off.

 - Also are you in a virtual environment running PAD from your PC and not the VM?

 - Finally this might be just a window 11 issue, the OS isn't exactly perfect at the moment.

chrisevans10
Regular Visitor

Hi. Thanks for the reply. I have tried the focus window and reducing the selectors with no luck. The environment is a PC rather than a VM. Good shout re Windows 10 but unfortunately I have just tested it on a colleagues machine and get the same issue!

Just found someone else with the flickering issue and they've mentioned it was window 11, however since its not in your case try some other methods of interacting with the legacy software, e.g.:

- Use a move mouse to image action with a click, see what happens

- Use send keys action to select something or write text, see what happens.

 

Let me know if either of those work, or don't work.

if its the former, probably a UI element issue, otherwise its likely a new PAD bug for this specific software.

chrisevans10
Regular Visitor

Yup move mouse to image works fine and so does write text. I'm actually using both of those as a temporary workaround for now (using a mixture of tab, clicks etc to navigate) but of course it's not likely to be as reliable as being able to pick up on the UI elements themselves.

 

It's strange how it is still able to ultimately determine the element and fill it as required - it's just the flashing and delay that is the problem. The rest of the application can be automated fine and UIPath is able to automate these specific windows.

Yeah seems like a PAD UI Selectors issue by the looks of it then, one last thing to try out:

Run this via the run button in the PAD console (where you see all your automations) rather than the debug method, see if that still causes the bug,

 

if that doesn't work we'll probably need someone more versed in the intricate details of UI Elements, as I'm out of ideas at that point 😅

chrisevans10
Regular Visitor

Sadly that one doesn't work either! We do have a support contract with Microsoft so have raised it to their team. I'll post back here with what they say, unless anyone else has any suggestions! 🙂 Thanks for your help though.

cesarwal
New Member

Hi, Chris

Have you found a solution to this issue?

I have the exact same problem with the application window flickering / flashing.

The only difference in my case is that the legacy app is running on a Windows 10 VM

Thanks,

Hi

 

I have not found a solution but I am in contact with the developers via support who are looking at it, presently with a low priority as it is assumed to be unique to the application I am working with. If the same is happening for you, I'd recommend you contact MS support via your support package for your organisation so we can get the same issue raised for attention.

 

If you don't have support via MS, I'd be happy to take an email from you with a Dropbox or similar and I'll pass it along under my thread as additional evidence of the same issue? They require of a video of what is happening and an anonymised flow exported as follows:

 

  • On the Power Automate Portal, navigate to the "Solutions" tab and create a new "Solution".
     
  • Open the Solution and go to "Add existing", to add the Desktop Flow to it. (add existing -> automation -> desktop flow)
    Should the original Desktop Flow contain sensitive information such as passwords, feel free to create a copy of it via the Console of "Power Automate Desktop", delete the sensitive data and insert this one instead to the Solution.

  • Use the "Export solution" option in order to export this Solution in a zip file. During the export, you can choose "Unmanaged".

 

I also simplified the flow from my upload so it featured just the parts that were problematic.

 

Best wishes

 

Chris

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Top Kudoed Authors
Users online (2,995)