Could you please provide more details on the exact scenario you want to achieve? I am afraid that the provided information is not enough to determine what is causing the problematic behavior.
A possible cause could be the value assigned to the text variable. Note, that the findItemByValue()
method expects the whole path to the folder to be passed, while the findItemByText()
method can works only with the directory name.
If this is not the case, could you try to isolate the issue into a sample fully runnable project including all needed references, so we could examine locally the configuration at hand? Detailed information on how to prepare such project is available here: Isolating a problem in a sample project
Looking forward to hearing from you,
DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!