Hi Steve,

I am also working with Java based application and never had issue with
the selecting a nodes. I tried similar actions which you tried to
perform and it worked succesfully.
I have couple of suggestions. After Recording those two lines you will
have expanded nodes; now before you run these lines you need to reset
those nodes to initial point.
2. we wait statement in between may work.

IF if still not working please send me screenshot of your
application.


On Jan 29, 9:29 am, Steve-O <[email protected]> wrote:
> Using QTP 10.0 on a stand-alone Java App, I am having trouble getting
> QTP to select the correct node in the tree.  The code after recording
> is:
>
> JavaWindow("CMS App").JavaTree("AdminTree").Activate
> "Administration;System Administration"
> JavaWindow("CMS App").JavaTree("AdminTree").Select
> "Administration;System Administration;Enumerated Lists"
>
> But when I run the script QTP selects the wrong node every time.  The
> tree is a folder structure, when you activate (double-click) on a
> folder in the tree it opens and there are more nodes that display
> beneath the folder.  So I'm thinking that in the split-second that it
> takes the folder to open QTP selects the wrong node because it is not
> seeing the correct option.  Some type of WaitProperty is needed maybe?
>
> Any ideas would be helpful, thanks!

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to