Doe Capture Text or Capture Text Area Work for Java
I tried to Capure Text or Text are for Checkpoint and Out Put Value.I do not get any values.
Re: Doe Capture Text or Capture Text Area Work for Java
These functions do not work with Java (I think the Java Plugin guide even says so, but I am not sure, so you know MI knows about the problem).
You will probably have to get the Run-Time Object using the "Object" method on the control you want to get text from. Then, using ObjectSpy, find out which Run-Time Methods are supported by that object.
Click the hand and click on the label/text box you want.
When Obj.Spy comes back up, select "Run-Time Object" radio button and the "Methods" tab.
Look through the list for "getText()" or something similar. (I am pretty sure it will be "getText()" as that is standard Java implementation)
In your script do this...
MsgBox JavaWindow("WindowNameHere").JavaEdit("ControlName Here").Object.getText()
This will just put the text out to a VBScript message dialog, but you can also put it into a variable, etc.
Note: The object must be in the Obj.Repository.
Change the names above as appropriate, and make sure "JavaEdit" is changed to the appropriate object type.
If you need any more help, let me know. I have been using QTP for about 6 months on a pure Java application, so I have a lot of lessons learned, if you need some...