public void CheckPlayer2Name() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); Thread.Sleep(2000); var actualResult = playInPage.GetPlayer2Text(); Assert.AreEqual("ÊÎÌÏÜÞÒÅÐ ()\r\n0", actualResult); }
public void CheckUpdatePlayer2Name() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickPlayer2(); Thread.Sleep(3000); var actualResult = playInPage.GetPlayer2Text(); Assert.AreEqual("ÈÃÐÎÊ 2 ()\r\n0", actualResult); }
public void CheckSquareBottomLeftFieldIsClickable() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickBottomLeft(); Thread.Sleep(500); var actualResult = playInPage.GetBottomLeft(); Assert.AreEqual("x", actualResult); }
public void CheckUserClick() { 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); }
public void EasyWin() { var playInPage = new PlayInPage(_webDriver); playInPage.GoToPlayInPage(); playInPage.ClickCenter(); Thread.Sleep(2000); if (playInPage.GetRight() == "o" || playInPage.GetTop() == "o" || playInPage.GetBottom() == "o" || playInPage.GetLeft() == "o") { playInPage.ClickBottomRight(); Thread.Sleep(1000); } else if (playInPage.GetBottomRight() == "o" || playInPage.GetTopRight() == "o" || playInPage.GetBottomLeft() == "o" || playInPage.GetTopLeft() == "o") { playInPage.ClickTopRight(); } playInPage.ClickBottomLeft(); Thread.Sleep(2000); if (playInPage.GetTopRight() != "o") { playInPage.ClickTopRight(); Thread.Sleep(2000); } else if (playInPage.GetBottom() != "o") { playInPage.ClickBottom(); Thread.Sleep(2000); } var actualResult = playInPage.GetScoreAppear(); Assert.AreEqual("1", actualResult); }