1What should the following method return?
public string MethodName(string test)
{
var a = TsBy.Css("table[class = 'test']");
var b = a.Resolve(Browser).FindElements(By.TagName("tr"));
for (var i = 0; i < b.Count; i++)
{
var c = b[i].FindElements(By.TagName("td"));
for (var x = 0; x < c.Count; x++)
{
if (string.Equals(c[x].Text, label,
StringComparison.CurrentCultureIgnoreCase))
{
var classType = c[x + 1].GetAttribute("class");
if (classType == "type")
{
var element = lines[x + 1].Text;
return element;
}
}
}
}
return null;
}