Esempio n. 1
0
        public RoomsPage QuickPlay(string inputName)
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(userName)).SendKeys(inputName);
            driver.FindElement(enterButton).Click();
            RoomsPage room = new RoomsPage(driver, wait);

            return(room);
        }
        public RoomsPage DeleteGameRoom()
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(deleteGameRoom)).Click();
            driver.SwitchTo().Alert().Accept();
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(createNewRoomButton));
            var room = new RoomsPage(driver, wait);

            return(room);
        }
        public RoomsPage ResetGameRoom()
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(resetGameRoom)).Click();
            driver.SwitchTo().Alert().Accept();
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(roomName));
            RoomsPage room = new RoomsPage(driver, wait);

            return(room);
        }
Esempio n. 4
0
        public RoomsPage LoginValid(string inputEmail, string inputPassword)
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(email)).SendKeys(inputEmail);
            driver.FindElement(password).SendKeys(inputPassword);
            driver.FindElement(loginButton).Click();
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.ClassName("btn-cancel"))).Click();
            var room = new RoomsPage(driver, wait);

            return(room);
        }
Esempio n. 5
0
        public RoomsPage LeaveSiteRejoinQuickPlay()
        {
            driver.Url = "https://www.google.com/";
            driver.Url = "https://www.planitpoker.com/";
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.CssSelector(".btn-six"))).Click();
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.ClassName("btn-cancel"))).Click();
            var room = new RoomsPage(driver, wait);

            return(room);
        }