I have a login dialog that can have one of two parents. I am unable to come up with a tag that allows SilkTest to correctly identify this dialog.
I have tried the following tags -
1) "[DialogBox]CaliberRMRequirements/Logon to * | [SwfDialogBox]SelectRequirementNode/Logon to *"
2) [SwfDialogBox]#1/Logon to *
3) "[DialogBox]CaliberRMRequirements/[SwfDialogBox]Logon to * | [SwfDialogBox]SelectRequirementNode/[SwfDialogBox]Logon to *"
Any suggestions on how I can get around this?
Open the help file and type in the words Multitag Statement. This is the best way to deal with this issue. There is a good explaination of how this works and some examples. If you are having further trouble then post again.
Multitag will work the same way as
"[DialogBox]CaliberRMRequirements/Logon to * | [SwfDialogBox]SelectRequirementNode/Logon to *"
but last one doesn't work.
Create winclass for your dialog box and then use just its instances for required windows. Example:
<font class="small">Code:</font><hr /><pre>
[ ]// Here is winclass declaration
[+]winclass LogonClass : DialogBox
[ ]tag "Logon to *"
[ ]// Put all required controls here
[+]window DialogBox dCaliberRequirements
[ ]tag "CaliberRMRequirements"
[ ]LogonClass dLogon
[+]window SwfDialogBox dSelectRequirement
[ ]tag "SelectRequirementNode"
[ ]LogonClass wLogon
Look up ~ActiveApp in SilkTest help.
Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.
The winclass solution really works well for me :-). Thanks again!