Forum Discussion

pmahesha's avatar
pmahesha
Occasional Contributor
13 years ago

Issue with Name mapping and Window is invisible

Hello,

I get error message

"The 'DISPLAY SETUP' window is invisible
and thus cannot be
activated
"


even though the required window is available and active.


This message does not come when first time the application is
launched and the selected radio button is clicked from main screen of the application
. But if I try to click on the radio button directly from main screen in subsequent attempts (Application is already launched and only setup is selected), I get the above error message.



Also this message does not come if I do not use Name
Mapping. That is I do not get the error if I use following code:

 Sys.Process("javaw").SwingObject("ad",
"SETUP WINDOW", -1, 1).SwingObject("JRootPane",
"",
0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JPanel",
"SETUP
WINDOW", 0).SwingObject("JRadioButton",
"DISPLAY SETUP", 0).ClickButton();




But in case I use use name mapping that is created automatically by
the script, I cannot get going.



Here is the problem code which works only for the first time when
the application is launched. The name mapping is done automatically
by the script.

Aliases.Sys.java1.dialog01.RootPane.null_layeredPane.null_contentPane.Panel.RadioButton1.ClickButton();



Please suggest.