Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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; }
            }
        }
Ejemplo n.º 3
0
        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);
        }