
Hi @Harsha C S
There's a prerequisite to automate Edge IE mode:
Make sure to close all the Edge browser tabs and window before running the code.
You can refer to this answer. If we don't close all the windows, it will cause the code to fail.
I think we can't attach the Edge IE mode window to an already opened Edge, as we even can't open an Edge window before we run the Edge IE mode code.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou