Example #1
0
 public void Checknavigation(String gametype)
 {
     try
     {
         if (gametype == "Slots")
         {
             String ExpectedSlotsUrl = "https://www.gametwist.com/en/games/slots/";
             Slots.Click();
             System.Threading.Thread.Sleep(3000);
             Assert.AreEqual(Browsers.getDriver.Url, ExpectedSlotsUrl);
             Console.WriteLine("Opened Slots Page");
         }
         if (gametype == "Bingo")
         {
             String ExpectedBingoUrl = "https://www.gametwist.com/en/games/bingo/";
             Bingo.Click();
             System.Threading.Thread.Sleep(3000);
             Assert.AreEqual(Browsers.getDriver.Url, ExpectedBingoUrl);
             Console.WriteLine("Opened Bingo Page");
         }
         if (gametype == "Casino")
         {
             String ExpectedCasinoUrl = "https://www.gametwist.com/en/games/casino/";
             Casino.Click();
             System.Threading.Thread.Sleep(3000);
             Assert.AreEqual(Browsers.getDriver.Url, ExpectedCasinoUrl);
             Console.WriteLine("Opened Casino Page");
         }
         if (gametype == "Poker")
         {
             String ExpectedPokerUrl = "https://www.gametwist.com/en/games/poker/";
             Poker.Click();
             System.Threading.Thread.Sleep(3000);
             Assert.AreEqual(Browsers.getDriver.Url, ExpectedPokerUrl);
             Console.WriteLine("Opened Poker Page");
         }
     }
     catch (Exception)
     {
         throw;
     }
 }