public void WhenIClickedOnAddToBetSlip() { try { RacingPage MyRacingpage = new RacingPage(); MyRacingpage.ClickAddtoBetSlip(); } catch (Exception e) { throw e; } finally { PropertiesCollection.driver.Close(); PropertiesCollection.driver.Quit(); } }
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(); } }
public void GivenISelectedFirstRace() { try { RacingPage MyRacingpage = new RacingPage(); MyRacingpage.ClickRace(); } catch (Exception e) { throw e; } finally { PropertiesCollection.driver.Close(); PropertiesCollection.driver.Quit(); } }
public void GivenISelectedNextToJumpSection() { try { RacingPage MyRacingpage = new RacingPage(); MyRacingpage.ClickNextToJumpLink(); } catch (Exception e) { throw e; } finally { PropertiesCollection.driver.Close(); PropertiesCollection.driver.Quit(); } }
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(); } }
public void GivenIClickedRacingSection() { try { RacingPage MyRacingpage = new RacingPage(); MyRacingpage.ClickRacingLink(); } catch (Exception e) { throw e; } finally { PropertiesCollection.driver.Close(); PropertiesCollection.driver.Quit(); } }