|
是阿,Run Wizard会帮你改,
如果你认错时他就不会了,(当你不太肯定是哪个控件时)
需要你自己去改!
你上面说的那几种都很好
只是没有多加注意!
As I know, sometimes the obj's physical description changed as well, such as "{
class: window,
MSW_class: browser_main_window,
NSTitle: "Browser Main Window"
}" change to "{
class: window,
MSW_class: browser_main_window,
NSTitle: "Browser Main Window",
location: 0
}"
If this happen, "!.*" will not work. Currently I added switch/if/... in my scripts, but don't think is a good solution.
Actually if there are more than one window. Winrunner will show object description in above format adding extra parameter "location".
To resolve this issue...if you know that which(No.) window you are trying to interact then for physical description you can use that respective no. then it will work fine.
If you think it is not possible to know the no. of IE browsers open then you can use "getparent" function for getting the actual parent window and carry on your testing irrespective of any no. of windows
相信这里些话已经说得很清楚了!
[ Last edited by QA_BAY on 2004-11-19 at 14:04 ] |
|