public void ClickLink(string linkText) { if (string.IsNullOrWhiteSpace(linkText)) { throw new ArgumentNullException(nameof(linkText)); } Wrapper(() => ThisElement.FindElementByLinkText(linkText).Click()); }
public string GetValue() { var result = Wrapper(() => { string value = ThisElement.GetAttribute("value"); value = value ?? string.Empty; value = Trim(value); return(value); }); return(result); }
public void SendKeys(string value) { value = value ?? string.Empty; Wrapper(() => ThisElement.SendKeys(value)); }
public void Focus() { Wrapper(() => ThisElement.Click()); }
public void Clear() { Wrapper(() => ThisElement.Clear()); }