public MultipleUserGamePage RemoveUser()
        {
            driver.FindElement(removeUserButton).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage ClickPlayerTwoAvatar()
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(playerTwoAvatar)).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage ClickObserverRole()
        {
            driver.FindElement(observerRole).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage FinishVoting()
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(finishVoting)).Click();
            driver.FindElement(toastError).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage Start()
        {
            driver.FindElement(startButton).Click();
            driver.FindElement(toastError).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage SendEstimate(int num)
        {
            string numS          = Convert.ToString(num);
            var    estimate      = driver.FindElement(estimates);
            var    selectElement = new SelectElement(estimate);

            selectElement.SelectByText(numS);
            driver.FindElement(toastError).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage Vote(int num)
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(playerOneAvatar));
            string card         = Convert.ToString(num);
            var    cardsList    = driver.FindElements(By.CssSelector(".cards li button"));
            var    selectedCard = cardsList.First(e => e.FindElement(By.TagName("div")).Text == card);

            selectedCard.Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }
        public MultipleUserGamePage CreateStory(string inputStory, string inputStory2)
        {
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(createStory)).SendKeys(inputStory);
            driver.FindElement(saveAndAddNewStory).Click();
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(createStory)).SendKeys(inputStory2);
            driver.FindElement(saveAndCloseButton).Click();
            wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(endTour)).Click();
            driver.FindElement(toastError).Click();
            var game = new MultipleUserGamePage(driver, wait);

            return(game);
        }