Java Application: Click on a disabled JavaStaticText
I'm writing automated tests for a Java application and I'm having trouble with one step. At some point, I need to click on a JavaStaticText in order to open a popup. To automate this step, I simply use the following code :
JavaWindow("xxx").JavaStaticText("xxx").Click "5", "5", "LEFT"
Manually, I can click on it without any problems but this step leads to the error "object is disabled". If I look at the properties of the object, I see that enabled = 0. How can I force a click on a JavaStaticText?
Thanks for any help.
Re: Java Application: Click on a disabled JavaStaticText
I found a solution by getting the coordinates of the JavaStaticText and then using DeviceReplay :
oDr.MouseClick x, y, 0
But there may be a better solution ...