public virtual void Drop(int x = -1, int y = -1) { ActionsHelper actionsHelper = ActionsHelper.getInstance(); actionsHelper.Drop(RelayObject.SEWebElement, x, y); bool droppable = Convert.ToBoolean(BrowserHoster.getInstance().WebDriver.ExecuteScript(_jsDrop, RelayObject.SEWebElement)); if (!droppable) { actionsHelper.Drop(RelayObject.SEWebElement, x, y); } }
public virtual void DragAndDrop(IWebElement target) { ActionsHelper actionsHelper = ActionsHelper.getInstance(); RemoteWebElement webElement = RelayObject.SEWebElement; string draggable = webElement.GetAttribute("draggable"); if (!string.IsNullOrEmpty(draggable) && draggable.ToLower().Equals("true")) { BrowserHoster.getInstance().WebDriver.ExecuteScript(_jsDnD, RelayObject.SEWebElement, target.RelayObject.SEWebElement); } else { actionsHelper.DragAndDrop(RelayObject.SEWebElement, target.RelayObject.SEWebElement); } }
public virtual void DBClick(int x = -1, int y = -1) { ActionsHelper actionsHelper = ActionsHelper.getInstance(); actionsHelper.DBClick(RelayObject.SEWebElement, x, y); }
public virtual void TypeText(string Text) { ActionsHelper actionsHelper = ActionsHelper.getInstance(); actionsHelper.TypeText(RelayObject.SEWebElement, Text); }
public virtual void ClearValue() { ActionsHelper actionsHelper = ActionsHelper.getInstance(); actionsHelper.ClearValue(RelayObject.SEWebElement); }
public virtual void MarkText(int start, int end) { ActionsHelper actionsHelper = ActionsHelper.getInstance(); actionsHelper.MarkText(RelayObject.SEWebElement, start, end); }
public virtual void MarkText(string markText) { ActionsHelper actionsHelper = ActionsHelper.getInstance(); actionsHelper.MarkText(RelayObject.SEWebElement, markText); }