/// <summary> /// Clicks on the middle of the control, and moves the cursor to the /// top left of the screen to avoid hover related problems. /// </summary> /// <param name="control"></param> /// <returns>Returns this page.</returns> public ModelWindowPage ClickControl(ModelControl control) { ArgumentGuard.NotNull(control, "control"); SeleniumUtils.ClickAndWait( Driver, Driver.FindElement(By.CssSelector(".ImageContainer")), control.Center, By.CssSelector(PageReadyIndicator_)); return(this); }