如何使用 Watin Core 处理 IE 特定浏览器确认对话框?
How to handle IE specific browser confirm dialog using Watin Core?
我正在使用以下代码使用 Watin Core 进行基本搜索自动化。
IE ie = new IE();
GoToNoWait("www.whosebug.com");
ie.TextField(Find.ByName("q")).TypeText("Test");
ie.Button(Find.ByClass("btn js-search-submit")).Click();
但是 IE 会弹出以下消息:
When you send information to the Internet, it might be possible for
others to see that information. Do you want to continue?
尝试使用 ConfirmDialogHandler 处理此问题,但没有成功。有高手请指教
您可以更轻松地将此注册表设置设置为 0,这样就不会显示警告。您将从 IE 收到其他消息,但这一条不会成为问题:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones]"1601"=dword:00000000
(如果将其设置为 1,将显示消息)。
我正在使用以下代码使用 Watin Core 进行基本搜索自动化。
IE ie = new IE();
GoToNoWait("www.whosebug.com");
ie.TextField(Find.ByName("q")).TypeText("Test");
ie.Button(Find.ByClass("btn js-search-submit")).Click();
但是 IE 会弹出以下消息:
When you send information to the Internet, it might be possible for others to see that information. Do you want to continue?
尝试使用 ConfirmDialogHandler 处理此问题,但没有成功。有高手请指教
您可以更轻松地将此注册表设置设置为 0,这样就不会显示警告。您将从 IE 收到其他消息,但这一条不会成为问题:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones]"1601"=dword:00000000
(如果将其设置为 1,将显示消息)。