Hi Alex,
I'm looking for a means to pass in a RepoItemInfo object as a string and not as the object it's self.
Lets say that I grab the text from a list item at run time. That text happens to be the object name of another object in my webpage. If I won't know the name until run time, I need to grab that string reprsentation of the object (string myString = "ObjectName"), append "Info" to it (myString = "ObjectNameInfo") and then pass it to another method that allows me to work on that RepoItemInfo object. But because I'm passing the name in as a string "ObjectNameInfo" instead of ObjectNameInfo, Ranorex won't see it as an object.
so:
I can't do this:
public static void FindScrubber(RepoItemInfo scrubTestInfo)
{
}
and pass it string "ObjectItemInfo" because type string and type RepoItemInfo aren't the same.
Likewise if I have:
public static void FindScrubber(string scrubTestInfo)
{
}
and try scrubTestInfo.Exists, that will fail because scrubTestInfo isn't of type RepoItemInfo.
So how do I convert a string to be a RepoItemInfo object? That object will already exist in the Repository too..
Did that help any or make it worse?
Thanks,
Jason