Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JavaTree
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
Thanks a lot Lotos. It helped.
I have also written my own script that goes like this :


Public Function findItemCount(ByRef levelID ) // levelID will be the level in the javatree. viz #0;#4;#4 or #i;#j etc.
Code:
Dim itemID
   Dim itemCount
   itemCount = 0
   On Error Resume Next
   Do While true
        itemID = levelID + ";#" + CStr(itemCount)  
        JavaWindow("XXX").JavaTree("JavaTree_obj").Select CStr(itemID)
        If Err.Number <> 0 then
            Exit do
        end if
        itemCount = itemCount + 1

    Loop
    On Error GoTo 0
    
    findItemCount = itemCount
    
End Function
ps. I have tested it and it works fine
Reply


Messages In This Thread
JavaTree - by perplexed - 05-20-2011, 08:02 PM
RE: JavaTree - by perplexed - 05-25-2011, 10:56 AM
RE: JavaTree - by lotos - 05-25-2011, 07:49 PM
RE: JavaTree - by perplexed - 05-31-2011, 08:09 PM
RE: JavaTree - by lotos - 06-01-2011, 12:38 PM
RE: JavaTree - by Pindaruk1 - 06-20-2011, 01:59 PM
RE: JavaTree - by lotos - 06-20-2011, 04:30 PM
RE: JavaTree - by Pindaruk1 - 06-22-2011, 04:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access name of a node in a javatree in UFT ? saniya 0 1,808 07-25-2018, 06:00 PM
Last Post: saniya
  Javatree Problem Omkar87 2 4,980 03-02-2012, 03:09 PM
Last Post: sshukla12
Question JavaTree - Not able to click final links scsvel 1 3,035 01-30-2012, 03:34 PM
Last Post: scsvel

Forum Jump:


Users browsing this thread: 3 Guest(s)