The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Compuware TestPartner

Pages: 1
jbottiger
Member


Reged: 10/28/11
Posts: 66
Loc: FL
Specifying Full Path of Sel. Node (DotNETTreeView)
      #715945 - 09/05/12 02:13 PM

Supposing I have a TreeView structure whose objects look like this:

Root_Level

|_ TestItemA

TestItemB

|_ SubTest_Magic

SubTest_Memories


If I want to perform the SelectItem method on "SubTest_Memories", which is the value of the string variable "ChooseItem", how do I represent the full path of that SubTest_Memories after performing a "TextExists" method on the entire tree?

In other words, when I locate an item containing specific text, how do I perform SelectItem on that particular object/item? I cannot specify just that node's name by itself as it needs the full path, but I don't have any of its parents saved.

Please advise as this is part of a task that needs to be completed as soon as possible. Thanks.

--------------------
V/R,
John J. Bottiger


Post Extras: Print Post   Remind Me!   Notify Moderator  
eggbox
Advanced Member


Reged: 01/27/02
Posts: 457
Loc: Detroit, Michigan
Re: Specifying Full Path of Sel. Node (DotNETTreeView) [Re: jbottiger]
      #716075 - 09/07/12 04:25 AM

Since you can find the item with the TextExists() method why not use the TextSelect() to actually select it.

--------------------
//*eggbox


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 4 anonymous users are browsing this forum.

Moderator:  Myrtle, Jim Brennan, AJ, DSquared 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 1410

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5