Exemple #1
0
 /// <summary>
 /// Close all open tabs/windows and switch to the main (first) window.
 /// </summary>
 /// <param name="webElement">This WebElement instance on which to perform the action (provided by the extraction rule).</param>
 /// <param name="actionRule">This ActionRule instance (the original object send by the user).</param>
 public override void OnPerform(IWebElement webElement, ActionRule actionRule)
 {
     WebDriver.CloseAllChildWindows();
 }