简体   繁体   中英

Is there a way to automate Internet Explorer which is not affected by different protected mode settings?

I'm trying to automate the Internet explorer using C# in Visual Studio. Unfortunately the protected mode settings are not set to the same value for each zone and I don't have the necessary rights to change that. I tried Selenium Webdriver and shdocvw.internetexplorer so far... But it won't work because of the protected mode settings:( Is there a way to make it work even if I can't change the protected mode settings?

Any help is highly appreciated!

Thanks in advance!

According to your comments, you want to remote a WebApplication, that exist in the local Network, does not have an API but you are allowed to do this kind of access.

At least for me it feels like adding the Remoting of a Internet Explorer to the mix, might get overboard. Unless you need something like the dreaded ActiveX controls (wich are a IE only thing), or a special plugin, you are often better served with using plain HTTPClient and associated classes.

For there this is basically a question of Web-Scraping.

If you want to use selenium you can try this

var capabilitiesInternet = new InternetExplorerOptions {IntroduceInstabilityByIgnoringProtectedModeSettings = true };
driver = new InternetExplorerDriver(capabilitiesInternet);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM