BUG: RepoGenBaseFolder.SelfInfo.Path returns empty string
Posted: Thu Nov 21, 2013 6:11 pm
I'm trying to loop through a set of TrTags inside a TableTag and need to use code to do it since there is no looping in the recording modules.
So, trying to use a repository object and get the basic path info for just that object (the TrTag) and one child object (a spantag) so I can just update the repository and not have to manage the paths in code.
I have the objects nested so that it looks like:
...
---->TBodyTag(folder)
-------->TrTag(folder)
------------>Span(item)
My code is a foreach(TrTag tr in TBodyTag), but I only want to get the TrTag's path, not the full absolute path, so I found that the SelfInfo.Path attribute returns just the repo path for the specific item, IF it is an item and not a folder. For folders it returns a blank string, when it should return the actual item path, like items do.
Please see the attached sample solution and test.html file that demonstrates the issue.
Edit: Using Ranorex 4.1.2. (I should know to include that by now... )
So, trying to use a repository object and get the basic path info for just that object (the TrTag) and one child object (a spantag) so I can just update the repository and not have to manage the paths in code.
I have the objects nested so that it looks like:
...
---->TBodyTag(folder)
-------->TrTag(folder)
------------>Span(item)
My code is a foreach(TrTag tr in TBodyTag), but I only want to get the TrTag's path, not the full absolute path, so I found that the SelfInfo.Path attribute returns just the repo path for the specific item, IF it is an item and not a folder. For folders it returns a blank string, when it should return the actual item path, like items do.
Please see the attached sample solution and test.html file that demonstrates the issue.
Edit: Using Ranorex 4.1.2. (I should know to include that by now... )