识别C#中的IE弹出窗口阻止程序设置 [英] Identify the IE popup blocker setting in C#

查看:127
本文介绍了识别C#中的IE弹出窗口阻止程序设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用Selenium Grid开发了该程序.我们被卡住了,如何使用C#识别IE弹出浏览器设置.


karhtikeyan

we are developed the program using selenium Grid. we are stuck the program,. how to identify the IE popup browser setting using C#.


karhtikeyan

推荐答案

嗨karhtikeyan,

Hi karhtikeyan,

您的意思是IE安全弹出窗口设置吗?本节的配置值存储在以下注册表项中.

Did you mean the IE Security Popup setting? The configuration value of this section is stored in following registry key.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"1601"

您可以通过以下代码将其读出.

You could read it out by following code.

RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3");
Console.WriteLine(registryKey.GetValue("1601"));

最好的问候,
王丽

Best Regards,
Li Wang


这篇关于识别C#中的IE弹出窗口阻止程序设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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