public void SpinWithRounds(int rounds) { Thread.Sleep(1000); for (int i = 0; i < rounds; i++) { S_Mouse.Click(BetContainer.btnSpin); Thread.Sleep(1000); F_General.WaitForElementAttributeChangedToExpectedValue(BetContainer.btnSpin, "class", "", 20000); } }
public void SpinWithoutWin() { IWebElement el = null; while (el == null) { Thread.Sleep(1000); S_Mouse.Click(BetContainer.btnSpin); Thread.Sleep(1000); F_General.WaitForElementAttributeChangedToExpectedValue(BetContainer.btnSpin, "class", "", 20000); try { el = ConstantsLib.Driver.FindElement(By.XPath("//div[@class='trPrize won']")); el = null; } catch (NoSuchElementException) { break; } } }
public void SpinWithWin() { IWebElement el = null; while (el == null) { Thread.Sleep(1000); S_Mouse.Click(BetContainer.btnSpin); Credits = Credits - Bet; Thread.Sleep(1000); F_General.WaitForElementAttributeChangedToExpectedValue(BetContainer.btnSpin, "class", "", 20000); try { el = ConstantsLib.Driver.FindElement(By.XPath("//div[@class='trPrize won']")); } catch (NoSuchElementException) { } } LastWin = Convert.ToInt32(F_General.CaptureInterface(BetContainer.txtLastWin).Text); }