TestAutomationEssentials.Selenium.BrowserElement.DoubleClick C# (CSharp) Method

DoubleClick() public method

Performs a double-click on the element
public DoubleClick ( ) : void
return void
        public void DoubleClick()
        {
            Wait.Until(IsReady, 30.Seconds(), string.Format("{0} is not ready", Description));

            Logger.WriteLine("Double click on '{0}'", Description);
            var actions = CreateActionsSequence();
            var doublClick = actions.MoveToElement(WebElement).DoubleClick(WebElement).Build();
            doublClick.Perform();
        }