TreeView.PathSeparator broken?
Posted: Wed Jun 23, 2010 9:50 pm
It appears to me that the PathSeparator property of the TreeView class is broken in Ranorex.Net 1.4 - or else I just don't know how it is meant to work.
I have items in a TreeView whose text contains a slash character ('/'), which is the default PathSeparator character.
parent1
- child/1
- child/2
parent2
- child/3
- child/4
Therefore I set the PathSeparator property on my TreeView object to something else ('#') and then call the SelectPath(string path) method with a value like "parent1#child/1" but this fails (returns -3, I believe).
In troubleshooting the problem, I tried printing the current value of the PathSeparator property and it appears empty. By attaching a debugger I see that the property's value is null, even immediately after I assign the string "#" to it.
Am I doing something wrong?
Windows 7
Ranorex.Net 1.4.0.7
Thank you,
- Aldo
I have items in a TreeView whose text contains a slash character ('/'), which is the default PathSeparator character.
parent1
- child/1
- child/2
parent2
- child/3
- child/4
Therefore I set the PathSeparator property on my TreeView object to something else ('#') and then call the SelectPath(string path) method with a value like "parent1#child/1" but this fails (returns -3, I believe).
In troubleshooting the problem, I tried printing the current value of the PathSeparator property and it appears empty. By attaching a debugger I see that the property's value is null, even immediately after I assign the string "#" to it.
Am I doing something wrong?
Windows 7
Ranorex.Net 1.4.0.7
Thank you,
- Aldo