google搜索 站内搜索                 软件测试门户 | 软件测试培训 | 文章资料精选 | 软件测试论坛 | 测试解决方案 | 软件测试博客 | 测试招聘求职 
打印

[求助] setcontext

setcontext


对于window这个对象的其它动作我从字面上都能够理解(比如moveto,click,opencion等),但是setcontext这个动作我不明白它的实质意义.为什么老是会出现setcontext.谁能帮我理解一下!感谢.

TOP

setcontext的解释


SetContext
Establishes the context window for all Object commands that follow.

During playback, Robot locates the specified window. If the window is the active window, it remains active. If the window is not the active window, Robot takes one of these actions:

?If parameters$ is an empty string ("") or contains Activate=1, Robot makes the window the active window.
?If parameters$ contains Activate=0, Robot will not make the window the active window.
?If recMethod$ does not contain the State=Disabled qualifier, Robot makes the window the active window.

Setting the context window defines an internal state for Robot. If this command fails during playback (for example, if the specified window cannot be found), an error is logged, but playback continue regardless of the playback option for script command failures.

The context for all Object commands that follow is assumed to be the current context window. For example, when Robot plays back a Command button command, it assumes the button is in the current context window.

TOP

 
当前时区 GMT+8, 现在时间是 2008-12-5 23:47Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹