public IWebElement FindField(string locator) { return(FindFieldFromLabel(locator) ?? FindFieldByIdOrName(locator) ?? FindFieldByPlaceholder(locator) ?? FindRadioButtonFromValue(locator) ?? elementFinder.FindByPartialId(locator).FirstOrDefault(IsField)); }
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))); }
public IWebElement FindButton(string locator, Scope scope) { return(FindButtonByText(locator, scope) ?? FindButtonByIdNameOrValue(locator, scope) ?? elementFinder.FindByPartialId(locator, scope).FirstOrDefault(IsButton)); }