public void SetValue(string value) { RootElement.Click(); var input = RootElement.FindElement(By.TagName("input")); input.SendKeys(Keys.Control + "a"); input.SendKeys(value); input.SendKeys(Keys.Enter); }
public void Click() { RootElement.Click(); }
/// <summary>Send a click (or Tap) event to the root element of the control. /// <para/><para/> /// Implementors may override to route click event to the appropriate element in the control. If not overridden, /// click event is targeted to the controls root element. /// </summary> public virtual void Click() { Logger.WriteLine(Logger.LogLevels.TestDebug, "Clicking element [{0}]", RootElement?.MappingDetails?.FriendlyName ?? RootElement?.MappingDetails?.FindLogic ?? "Dunno!"); RootElement.Click(); }
public void Choose() { this.Scroll(); RootElement.Click(); }
public void InsertText(string text) { RootElement.Click(); RootElement.SendKeys(text); }