public void UnMuteSound() { var expectedResult = true; _gamePage.GoToGamePage() .MuteSound(); Thread.Sleep(3000); _gamePage.MuteSound(); Assert.AreEqual(expectedResult, _constMethods.VisibilityOfElement(By.CssSelector("[d^=M67]"))); }
public void RestartGame() { _gamePage.SwapNumberOfPlayers() .SetValueAtCentralSquare() .SetValueAtBottomRightSquare() .SetValueAtCentralBottomSquare() .SetValueAtCentralLeftSquare() .SetValueAtBottomLeftSquare() .SetValueAtTopRightSquare() .SetValueAtCentralRightSquareRight() .SetValueAtTopSquare() .SetValueAtTopLeftSquare(); Thread.Sleep(1000); _gamePage.RestartGame() .SetValueAtBottomLeftSquare(); Assert.That(_constMethods.VisibilityOfElement(By.CssSelector("[class = x]"))); }
public void ClickOn_Central_Square() { _gamePage.SetValueAtCentralSquare(); Assert.That(_constMethods.VisibilityOfElement(By.CssSelector("[class = x]"))); }