Hi guys! Can anyone help me with my code? I'm trying to create an object (java textfield) during runtime and input something to that field using the following code:
but the thing is, when I call this code:
it always returns nothing. Also, I cannot access the object when I am already trying to input something to it (QTP always returns that object cannot be found). Is there something wrong in the way that I created the object?? Help anyone?
Code:
Set txtSearchField = Description.Create()
txtSearchField("Class Name").Value = "JavaEdit"
Set objSearchField = objWindow.ChildObjects(txtSearchField)
If valReqdObjClass = "JavaEdit" Then
objWindow.JavaEdit(txtSearchField).Set valReqdObj
End If
but the thing is, when I call this code:
Code:
MsgBox objSearchField(0).GetROProperty("attached text")
it always returns nothing. Also, I cannot access the object when I am already trying to input something to it (QTP always returns that object cannot be found). Is there something wrong in the way that I created the object?? Help anyone?