本文介绍了是否可以关闭/关闭阻止在播放中双击录制的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我抓住  FailedToPerformActionOnBlockedControlException , 无论什么阻塞 窗口是 -  我想关闭/关闭它并重复失败的双
点击。

I catch the FailedToPerformActionOnBlockedControlException, no matter what the blocking window is - I want to close/dismiss it and repeat the failed double click.

阻止 窗口不属于测试的应用程序

 我尝试了多种    win32.dll操作,如:

 I tried many kinds of  win32.dll operations like :

[

 

DllImport " user32.dll"

DllImport("user32.dll")]

public

 

 

extern
静态
int
BringWindowToTop(
IntPtr
hWnd);

externstaticint BringWindowToTop(IntPtr hWnd);

public

 

 

extern
静态
IntPtr
GetDesktopWindow();

externstaticIntPtr GetDesktopWindow();

static

 

 

extern
bool
CloseWindow(
IntPtr
hWnd);

externbool CloseWindow(IntPtr hWnd);

非这些作品。我的测试必须有抵抗力。有没有办法做到这一点?

non of these works. my tests have to be resistant. is there any way to do this ?

谢谢,Ayelet

 

推荐答案

1.双击是否会打开阻止测试应用的窗口?

1. Is the double click bringing up a window that blocks your test appliction?

2.您知道阻止窗口的特征吗?例如Title / Name,controlId,classname,它内部的控件是否有取消按钮?

2. Do you know the characteristics of the blocking window? eg. Title/Name, controlId, classname, controls inside it, does it have a cancel button?


这篇关于是否可以关闭/关闭阻止在播放中双击录制的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 23:25