Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Child Objects in JavaWindow
#1
Not Solved
Hi,
I am automating an Oracle forms based application with Java objects. It has a screen with multiple JavaEdit elements with a tagname of 'VTextField'. In order to identify a specific JavaEdit element I am trying to browse through all JavaEdit elements using below code which will give me the index of the element

Code:
Dim oTextField
Set oTextField = Description.Create
oTextField("tagname").value = "VTextField"
Dim allTextBoxes, singleTextBox, counter
counter = 0

With JavaWindow("label:=.*")
Set allTextBoxes = .ChildOjects(oTextField)
For each singleTextBox in allTextBoxes
Msgbox counter
counter = counter + 1

Next
End With

I am getting an "unspecified error" at the line with code "Set allTextBoxes = .ChildOjects(oTextField)"

Can someone help me indicating what's wrong with my script? Thanks!

Shubham
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Child Object Not able to identified in Web Menu Link noor 0 1,862 01-21-2018, 04:44 PM
Last Post: noor
  Selecting child node from Wintree object ajith123 2 5,323 02-26-2014, 02:12 AM
Last Post: supputuri
  unable to get the webbuttons count(child objects) qtpexpert 2 5,690 07-05-2012, 01:54 PM
Last Post: qtpexpert
  Need a Help with identify child form VB6 programm shan1234 6 4,670 08-12-2011, 11:08 AM
Last Post: gbrahma.sagar
Exclamation QTP not clicking on Child window button nistalaramesh 0 5,037 12-06-2010, 06:55 PM
Last Post: nistalaramesh

Forum Jump:


Users browsing this thread: 1 Guest(s)