In latest version of ui-core, TryGetChild is throwing ControlNotFoundException. Ealier it use of returns false if element not found.
For example:
Public override bool Matches(WebControl actual)
{
var found = actual.TryGetChild(ByLocator.Xpath("//div"), timout);
return found;
}
In earlier core version above code was working fine. Now it's tthrowing ControlNotFoundException.
In latest version of ui-core, TryGetChild is throwing ControlNotFoundException. Ealier it use of returns false if element not found.
For example:
Public override bool Matches(WebControl actual)
{
var found = actual.TryGetChild(ByLocator.Xpath("//div"), timout);
return found;
}
In earlier core version above code was working fine. Now it's tthrowing ControlNotFoundException.