Getting all child tree items at run time
Posted: Thu Jan 17, 2019 7:38 pm
Hi,
I have a parent tree element that can have different child elements at run time. I don't care about the child elements I just want to expand all of them because they also have children. I cannot put all the child elements in the repo because there are many and as I mentioned they can be different so I don't know what they will be in terms of text, etc.
I do have the parent element in the repo because it does not change. How can I get the run time element using the repo item for the parent node?
Once I get this I can easily get the child elements under the parent.
Right now I have this, yes I know it not much but I've been messing around for awhile trying to figure it out and reset
public void Set_value_TreeItem(RepoItemInfo treeitemInfo)
{
var toptreeitem = treeitemInfo.FindAdapter<TreeItem>();
Note I am an Automation developer with 12 years experience in Automation and 5 years in software development so I don't need much explanation I just need to know how to access the run time application objects like Test Complete and other tools do instead of using the repository items.
Thank you !!!
I have a parent tree element that can have different child elements at run time. I don't care about the child elements I just want to expand all of them because they also have children. I cannot put all the child elements in the repo because there are many and as I mentioned they can be different so I don't know what they will be in terms of text, etc.
I do have the parent element in the repo because it does not change. How can I get the run time element using the repo item for the parent node?
Once I get this I can easily get the child elements under the parent.
Right now I have this, yes I know it not much but I've been messing around for awhile trying to figure it out and reset
public void Set_value_TreeItem(RepoItemInfo treeitemInfo)
{
var toptreeitem = treeitemInfo.FindAdapter<TreeItem>();
Note I am an Automation developer with 12 years experience in Automation and 5 years in software development so I don't need much explanation I just need to know how to access the run time application objects like Test Complete and other tools do instead of using the repository items.
Thank you !!!