Exemple #1
0
 public void WhenIClickedOnAddToBetSlip()
 {
     try
     {
         RacingPage MyRacingpage = new RacingPage();
         MyRacingpage.ClickAddtoBetSlip();
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         PropertiesCollection.driver.Close();
         PropertiesCollection.driver.Quit();
     }
 }
Exemple #2
0
 public void GivenISelectedFirstHorseForWinningAndEnterStake(string Stake)
 {
     try
     {
         RacingPage MyRacingpage = new RacingPage();
         MyRacingpage.ClickBetAndEnterStake(Stake);
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         PropertiesCollection.driver.Close();
         PropertiesCollection.driver.Quit();
     }
 }
Exemple #3
0
 public void GivenISelectedFirstRace()
 {
     try
     {
         RacingPage MyRacingpage = new RacingPage();
         MyRacingpage.ClickRace();
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         PropertiesCollection.driver.Close();
         PropertiesCollection.driver.Quit();
     }
 }
Exemple #4
0
 public void GivenISelectedNextToJumpSection()
 {
     try
     {
         RacingPage MyRacingpage = new RacingPage();
         MyRacingpage.ClickNextToJumpLink();
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         PropertiesCollection.driver.Close();
         PropertiesCollection.driver.Quit();
     }
 }
Exemple #5
0
 public void ThenBetShouldBeAddedInBetSlipSectionOfStake(string stake)
 {
     try
     {
         RacingPage MyRacingpage = new RacingPage();
         MyRacingpage.AssertBetAdded(stake);
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         PropertiesCollection.driver.Close();
         PropertiesCollection.driver.Quit();
     }
 }
Exemple #6
0
 public void GivenIClickedRacingSection()
 {
     try
     {
         RacingPage MyRacingpage = new RacingPage();
         MyRacingpage.ClickRacingLink();
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         PropertiesCollection.driver.Close();
         PropertiesCollection.driver.Quit();
     }
 }