How to get text from a .net status bar using Java
I use java scripting in RFT 8.0.0. The application I am currently working on was written in .net. There is a status bar at the bottom of the app that is made up of panels. I need to get the text from each panel to verify the correct ones are there and to separate the title from the actual status. Does anyone know how to do this.
I recorded and got a test object for the whole status bar, but now I need to break it down. Recording and clicking on one of the panels gave me this:
statusbarwin().click(atName("Past Due 728"), atPoint(44,10)); So it appears RFT can see the separate panels. What I need to do is work backwards. I know this panel is atIndex(1), and I want to get the text "Past Due 728" so I can compare "Past Due" and "728" to other parts of my test.
Re: How to get text from a .net status bar using Java
I should post my questions sooner. It seems that as soon as I post I am able to answer my own question.
Here is what I did:
cockpits = statusbarwin().getChildren();
System.out.println("index 1 = " + cockpits.getProperties());
.text is listed as one of the properties and contains the text "Past Due 728" I can use this to find what I need.