User K. Hari Prasad (firstname.lastname@example.org) posted:
I am working on Web scripting.
My problem is
One particular window which I am trying to declare is showing 2 ways,I
mean when I place cursor on caption and declare I get iot as Dialogbox and
if I place cursor beloew the caption I get it as browserchild and its parent
as former window i.e. DialogBox.
So When i run I am getting error as Window " WebModuleEditAttr "not found.
To make it simpler here it is:
[+] window DialogBox WebModuleEditAttr
tag "Web Module -Edit Attributes - Microsoft
[-] window BrowserChild EditAttributes
[ ] tag "#1"
[ ] parent WebModuleEditAttr
[+] HtmlTextField AssetName
[ ] tag "#3"
[+] HtmlPushButton Save
[ ] tag "Save"
[+] HtmlPushButton Cancel
[ ] tag "Cancel"
I have the same kinds of windows in my application. Simplest thing to do here is first to record a window declaration for the parent, i.e. put the cursor over the title bar and capture that. You'll get something like this:
window DialogBox FooParent
tag "Foo - Microsoft Internet Explorer"
*Then* you would record the contents of the dialog, the BrowserChild. It might look something like this:
window BrowserChild Foo
I have a number of popup dialogs in my product that I have handled in this manner, and it seems to work just dandy.