UiElement is No Longer Valid / Invalid UI Node Error

Hello All,
I am currently developing something that has UI automation. In this particular scene, there is a checkbox that needs to be checked. However, when using Click Activity, the particular checkbox cannot be selected. It shows “Ui Element is no longer valid”.
When selecting the checkbox using Check Activity, the selector shows “Invalid UI Node”.

UI.Automation.Activities upgraded to latest.
System.Activities 23.4.3
Browser: Edge (Incognito)

Used to work earlier. Out of nowhere it isn’t selecting this checkbox.

Thanks.

hi @Shahabaz ,
Refer this link, hope this helps

@Shahabaz,

Check this possible solution.

@ashokkarale I have checked all 4 points, and none of them seems to be causing an issue.

@lakshmi.mp I have tried using UiExplorer too, but the thing is, if checkbox is selected (using indicate element), it shows the error. If we select the #div> element, it recognizes and selects the element. The problem is the padding in that #div>.

If we run the process, it is selecting just outside the checkbox but inside the #div> (which is an empty space). Refer to the below image plz.

image

It selects outside the checkbox, but inside the div