通过代码配置IE浏览器设置? [英] Configure IE Browser Settings through Code?

查看:393
本文介绍了通过代码配置IE浏览器设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有没有办法在 期间通过编码配置IE浏览器设置开始执行Coded Ui Scripts。

Is there any way to configure IE Browser settings through coding during  the start of execution of the Coded Ui Scripts.

例如:禁用Ask Me稍后弹出消息;禁用以记住密码弹出消息,禁用以验证跨平台证书。

eg: disable Ask Me later popup message ; disable to remember password popup message , disable to verify cross platform certificates.

谢谢,

MG

推荐答案

这是一个非常好的问题,我也会对此感兴趣。  我花了一些时间学习IE WebBrowser,简而言之,它有很多东西,其中很多设计点并不为公众所熟知。获得
可能需要很长时间才能知道如何控制浏览器,最好的方法就是开始学习MSHTML。   IE的一个.NET包装器是System.Windows.Forms.Webbrowser,它很容易使用,直到你想深入研究它。  然而,有一个
的人在那里填写了许多GAPS,他的出色工作如下所示:

That's a very good question and one I'd be interested knowing as well.  I have spent a bit of time learning the IE WebBrowser, in short there's a lot to it and much of it's design points is not fully known by the public. It can take a long time to get to know how to control the browser and the best way is to get started learning MSHTML.  One .NET wrapper around IE is the System.Windows.Forms.Webbrowser and it is pretty easy to work with until you want to deep-dive into it.  However, there is a fellow out there who filled in many of the GAPS on this class with his excellent work as shown here:

http://codinglight.blogspot .com / 2009/07 / webbrowser-implementation-that-actual.html

http://codinglight.blogspot.com/2009/07/webbrowser-implementation-that-actually.html

本机IE的问题在于它主要面向C ++开发人员,因为它是用C ++编写的。  然而,显然MSFT不想发布太多的API信息,因此当新功能出现时等。通常需要一些艰苦的研究才能弄明白。
 

The problem with native IE is that it is primarily for C++ developers as it is written in C++.  However, obvisouly MSFT didn't want to release too much API information, so when new features come etc. It usually takes some hard study to figure it out.  


这篇关于通过代码配置IE浏览器设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆