Is there anything we can do about “The UiElement is no longer valid” error?
I am using a software application written on .Net framework. UiPath Studio can pick up most elements.
I am trying to Type Into a textbox. This Textbox’s element can be picked up using Indicate Element inside window, and I adjusted the selector so it can be used for all transactions.
Now the weird part is, when I run the program, the first transaction always fails when trying to Type Into, with the error message The UiElement is no longer valid even though the TextBox is right there and visible.
When I close the application and check the selector, it says “Valid”, so the selector seems fine. What is even more weird is, the first transaction always fails, but after the second transaction, it works fine.
Why does this happen? Is there any way to fix this?