If you encounter the dynamic windows in the UI automation, you can easily handle them.
Here are the functions available
| Code: |
| setDynamicWindow(parenttitle,parentindex=1,framepropertyname="NONE",framepropertyvalue="NONE",frameindex=1)
closeDynamicWindow(parenttitle,parentindex=1) |
| Code: |
| getLastWindowTitle()
getWindowTitle() getWindowURL() getLastWindowURL() |
| Code: |
|
setDynamicWindow("Test page",1,"NONE","NONE",1) closeDynamicWindow("Test page",1) |
| Code: |
|
setDynamicWindow("Test page",1,"title","mypage",1) closeDynamicWindow("Test page",1) |
| Code: |
|
gwt=getWindowTitle() gwtn=getWindowTitle() if gwt!=gwtn: setDynamicWindow(gwtn,1,"NONE","NONE",1) closeDynamicWindow(gwtn,1) |
| Code: |
|
gwt=getLastWindowTitle() gwtn=getWindowTitle() if gwt!=gwtn: setDynamicWindow(gwtn,1,"NONE","NONE",1) closeDynamicWindow(gwtn,1) |
| Code: |
|
gwt=getLastWindowTitle() gwtn=getWindowTitle() if gwt!=gwtn and gwt!= setDynamicWindow(gwtn,1,"NONE","NONE",1) closeDynamicWindow(gwtn,1) |
Post Comment