public void CheckSquareRightFieldIsClickable() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickRight(); Thread.Sleep(500); var actualResult = playInPage.GetRight(); Assert.AreEqual("x", actualResult); }
public void CheckAppearClick() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickRight(); Thread.Sleep(2000); Assert.IsTrue( playInPage.GetBottom() == "o" || playInPage.GetBottomLeft() == "o" || playInPage.GetBottomRight() == "o" || playInPage.GetCenter() == "o" || playInPage.GetLeft() == "o" || playInPage.GetRight() == "o" || playInPage.GetTop() == "o" || playInPage.GetTopLeft() == "o" || playInPage.GetTopRight() == "o"); }
public void CheckRefreshGame() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickRight(); playInPage.ClickPlayer2(); Thread.Sleep(3000); Assert.IsTrue( playInPage.GetBottom() == "" && playInPage.GetBottomLeft() == "" && playInPage.GetBottomRight() == "" && playInPage.GetCenter() == "" && playInPage.GetLeft() == "" && playInPage.GetRight() == "" && playInPage.GetTop() == "" && playInPage.GetTopLeft() == "" && playInPage.GetTopRight() == ""); }
public void CheckUpdateScoreForAppear() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickPlayer2(); playInPage.ClickRight(); playInPage.ClickLeft(); playInPage.ClickTopRight(); playInPage.ClickBottomLeft(); playInPage.ClickCenter(); playInPage.ClickTopLeft(); Thread.Sleep(3000); var actualResult = playInPage.GetScoreAppear(); Assert.AreEqual("1", actualResult); }