As part of my test I'm creating my own object repository, but instead of creating a new entry for each item in a list, I wanted to set a string value in the Xpath ID. Problem is, I can't pass in a string to a ListItem control via get/set.
My code looks like:
Code: Select all
public ListItem Market
{
get
{
return Practice.FindSingle("/list[@controlid='1000']/listitem[@text='" + _Market + "']");
}
}
Code: Select all
myMaint.Market.Click();
Thanks,
Jason