jlui
15 years agoOccasional Contributor
I have two dialog boxes with the same title, how do I reference the right one?
Hi, please see the attachment. I am testing a program that has both "Create siteplan plan" as the dialog box title. In the screenshot, the small dialog box comes up within the background dialog box. I want TC to click OK on the button. This is who I would do it in the script:
Aliases["OptPCS"]["dlgCreateSiteplanTable"]["btnOK"]["ClickButton"]();
If I run this command, I will get an error message "the object does not exist". I'm sure it's because it is looking for the OK button in the background dialog box, which doesn't have an OK button to click. The background dialog box is also not active, the small one is.
Given all this, how do I reference the small dialog box? Is there a way to reference it by some PID, or a maybe a child dialog box?
Thanks,
Justin
Aliases["OptPCS"]["dlgCreateSiteplanTable"]["btnOK"]["ClickButton"]();
If I run this command, I will get an error message "the object does not exist". I'm sure it's because it is looking for the OK button in the background dialog box, which doesn't have an OK button to click. The background dialog box is also not active, the small one is.
Given all this, how do I reference the small dialog box? Is there a way to reference it by some PID, or a maybe a child dialog box?
Thanks,
Justin