/// <summary> /// Drag and Drop this element to target. /// </summary> /// <param name="driver"></param> /// <param name="target"></param> public void DragAndDrop(WebDriver driver, WebElement target) { target.DragDropEnd(driver, _element); }
public WebElement FindElement(ByMethod method, string selector) { WebElement result = null; if (_element.FindElements(GetBy(method, selector)).Count > 0) { result = new WebElement(_element.FindElement(GetBy(method, selector))); } return result; }