Ejemplo n.º 1
0
 public IWebElement FindField(string locator)
 {
     return(FindFieldFromLabel(locator) ??
            FindFieldByIdOrName(locator) ??
            FindFieldByPlaceholder(locator) ??
            FindRadioButtonFromValue(locator) ??
            elementFinder.FindByPartialId(locator).FirstOrDefault(IsField));
 }
Ejemplo n.º 2
0
 public IWebElement FindField(string locator, Scope scope)
 {
     return(FindFieldById(locator, scope) ??
            FindFieldFromLabel(locator, scope) ??
            FindFieldByName(locator, scope) ??
            FindFieldByPlaceholder(locator, scope) ??
            FindRadioButtonFromValue(locator, scope) ??
            elementFinder.FindByPartialId(locator, scope).FirstOrDefault(e => IsField(e, scope)));
 }
Ejemplo n.º 3
0
 public IWebElement FindButton(string locator, Scope scope)
 {
     return(FindButtonByText(locator, scope) ??
            FindButtonByIdNameOrValue(locator, scope) ??
            elementFinder.FindByPartialId(locator, scope).FirstOrDefault(IsButton));
 }