Example #1
0
        public void UnMuteSound()
        {
            var expectedResult = true;

            _gamePage.GoToGamePage()
            .MuteSound();
            Thread.Sleep(3000);
            _gamePage.MuteSound();

            Assert.AreEqual(expectedResult, _constMethods.VisibilityOfElement(By.CssSelector("[d^=M67]")));
        }
Example #2
0
        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]")));
        }
Example #3
0
        public void ClickOn_Central_Square()
        {
            _gamePage.SetValueAtCentralSquare();

            Assert.That(_constMethods.VisibilityOfElement(By.CssSelector("[class = x]")));
        }