Activity indicating two elements

Hello community,

I am facing a challenge at one point. I am attempting to click on one of the radio buttons on the screen, but when I validate it, it highlights the correct button. However, upon refreshing the page and indicating again, it highlights two elements. This is causing an intermittent issue in my production environment.

Could you please assist me with the best possible solution? Currently, I am using the check activity, and I need to click on the radio button next to the unet text.

hi, @Diwakar_Mishra Try this open UiExplorer, click the radio button next to “UNET,” and tweak the selector to use the label or something unique, not just an index. If that’s unstable, throw in an Anchor Base: anchor the “UNET” text, then click the radio button. Avoid dynamic idx. Enable SimulateClick on your Click. That always works for me when selectors flip after a refresh

Hi @arjun.shiroya - Thank you for your reply. I just wanted to mention that when I refresh the page two or three times, I encounter an error that appears.

Also to add I am getting attached error in anchor base activity

use a fresh Find Element or Check App State right before the click, not just once. Stick in a small delay after refresh to let the UI load. Don’t save UiElement variables across page loads

I have already using Anchor base activity (Inside it using find element and click activity) but I am getting some error . I have already shared the error screenshot above. Could you please help?

try this:
Use Find Element alone before click, outside Anchor Base.
Add a small delay to let page load.
Avoid dynamic selectors like idx.
Find and click fresh each time, don’t reuse UiElements.

If the error occurs when refreshing the page, then I suspect there is something with the selector that needs adjusted to be dynamic (ran into a similar issue a UI-based automation for Ms Entra).

Can you share a screenshot and/or details on the selector?

Seems like it is working as of now, will reach out to you incase any issue occurs, Thanks :slight_smile:

Seems like it is working as of now, will reach out to you incase any issue occurs, Thanks

1 Like