Use following generic method for get child XPath
public static string FindChildXPath(string element)
{
string childXpath = "//[@id='" + element + "']/" + element[1] + "/";
return childXpath;
}
public static string FindChildXPath(string element)
{
string childXpath = "//[@id='" + element + "']/" + element[1] + "/";
return childXpath;
}
0 comments