如何在编码的UI中关闭所有对话框窗口 [英] How to close all dialog window in coded UI

查看:55
本文介绍了如何在编码的UI中关闭所有对话框窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编码ui的新手,

我编写了一个代码来自动化网站上的某些点击事件。有一些不需要的弹出窗口,如jquererror,alert pop ..等,我想通过编码ui关闭这些所有对话框。

i write a code to automate some click event on a web site . there are some unwanted pop up windows like jquererror, alert pop..etc , i want to close these all dialog box by coded ui.

我使用了BrowserDialogAction.Close,但只关闭了一个对话框。

i used BrowserDialogAction.Close but it close only one dialog .

请帮助。

提前致谢。

推荐答案

嗨thegreatpp,

Hi thegreatpp,

感谢您在此发帖。

根据您的问题与编码的ui更相关,我会移动它
Visual Studio 2010和2012中的测试工具
论坛对于合适的支持。

According to your question is more related to coded ui, I will move it to Test Tools in Visual Studio 2010 and 2012 forum for suitable support.

Visual C#讨论并询问C#编程语言,IDE,库,示例和工具。

The Visual C# discuss and ask the C# programming language, IDE, libraries, samples and tools.

如果你有一些语法或代码错误,请随时与我们联系。我们将尽力为您提供解决方案。

If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution.

感谢您的理解与合作。

最诚挚的问候,

Wendy


这篇关于如何在编码的UI中关闭所有对话框窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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