public void TimerAlertAcceptSuccessfully_When_ClickTimerAlertButton() { _alerts.ScrollTo(_alerts.AlertsSection).Click(); string colorBefore = _alerts.TimerAlertButton.GetCssValue("back-ground"); _alerts.TimerAlertButton.Click(); Thread.Sleep(5500); var alert = Driver.WrappedDriver.SwitchTo().Alert(); alert.Accept(); string colorAfter = _alerts.TimerAlertButton.GetCssValue("back-ground"); _alerts.AssertChangedColor(colorBefore, colorAfter); }