Hi @Sanju4C5 ,
As you've said, the SHDocVw
reference is only applicable for Internet Explorer. If you are trying to complete the automation in Edge, here're 2 workarounds for you:
- Use IE mode. IE mode maintains the support for
SHDocVw
reference but is just slightly different from how you deal with IE. To make it work, you need to
a. Enable IE mode. From this doc, you can find a step-by-step IE mode configuration tutorial.
b. Disable Internet Explorer 11 as a standalone browser. You need to enable this policy to disable Internet Explorer, which preventsSHDocVw
from failing to find IE mode windows.
c. Enable global window list in Internet Explorer mode. You need to enable this policy to allow the IE Mode windows to show up in the global window list.
Then, you are supposed to be able to interact with IE mode. - Use WebDriver like Selenium. Selenium has a full support for Edge automation, so you won't worry about the compatibility problems. If you have any interest, you can check this automation tutorial.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.
Best Regards,
Shijie Li