Highlighted
Absent Member.. Absent Member..
Absent Member..
164 views

Object is disabled - Java and Web Addin

I am running a QTP(Ver 10) script which is selecting an item from a list box(Rectangular box) and I am getting "Object is disabled".  Not only this even when I click OK button i am getting same error message.

 

This list box and OK button are in a modal dialog box when I record both events recorded.  I am selecting an item from the list box after scrolling down couple times.  When I re record I can see the following code. Running getting an error.

 

JavaInternalFrame("ModalDialog").JavaList("City").Select "Phoenix"

JavaInternalFrame("ModalDialog").JavaButton("OK").Click

 

When I use object spy they are been recognized as Java list and java button and the corresponding class names are javax.swing.JList and javx.swing.JButton.

 

I would appreciate if some one has a suggestion how to fix this issue.

 

Thank You,

0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.