Hi @Meli_Marco
Try below steps, might be helpful.
Reinstall the Java Extension from UiPath Tools if needed. Use hotkeys like Ctrl + W for Edge or ALT + F4 for Java instead of UI clicks. Add a Retry Scope to attempt closing the tab up to three times. If Java elements are still unrecognized, use Kill Process for java.exe and msedge.exe, then restart them with Start Process. Capture a screenshot and log the error before failing for debugging.
If you found helpful mark as a solution.