Example #1
0
 public FoldersAndLabelsPage CreateLabelsWithSameName(string labelName)
 {
     CreateNewLabel(labelName);
     WaitUtils.WaitUntilInvisible(NameInput, _driver);
     CreateNewLabel(labelName);
     return(this);
 }
Example #2
0
        public FoldersAndLabelsPage VerifyLastFolder(string folderName)
        {
            WaitUtils.WaitUntilInvisible(NameInput, _driver);
            var LastFolderTitle = LastFolder.GetAttribute("title");

            Assert.IsTrue(LastFolderTitle.Equals(folderName));
            return(this);
        }
Example #3
0
        public FoldersAndLabelsPage VerifyLastLabelName(string labelName)
        {
            WaitUtils.WaitUntilInvisible(NameInput, _driver);
            var LastLabelText = LastLabel.Text;

            Assert.IsTrue(LastLabelText.Equals(labelName));
            return(this);
        }
 public LoginPage EnterCrediantialsAndClickLogin(string userName, string password)
 {
     UserNameInput.SendKeys(userName);
     PasswordInput.SendKeys(password);
     LoginButton.Click();
     WaitUtils.WaitUntilInvisible(ProtonLoader, _driver);
     return(this);
 }
        public LoginPage NavigateToProtonMailLoginPage()
        {
            var url = ConfigurationManager.AppSettings["ApplicationBaseUrl"];

            _driver.Manage().Window.Maximize();
            _driver.Navigate().GoToUrl(url);
            //WaitUtils.WaitUntilInvisible(AtomLoader, _driver);
            WaitUtils.WaitUntilInvisible(AnimationLoader, _driver);
            return(this);
        }
Example #6
0
        public FoldersAndLabelsPage CreateMaxFolders(int folderLimit)
        {
            int i = 0;

            while (i < folderLimit)
            {
                CreateNewFolder(Convert.ToString(i));
                WaitUtils.WaitUntilInvisible(NameInput, _driver);
                i++;
            }
            CreateNewFolder(Convert.ToString(i));
            return(this);
        }
Example #7
0
        public FoldersAndLabelsPage DeleteAllFolders()
        {
            int i = FoldersList.Count;

            WaitUtils.WaitUntilVisible(AddFolderButton, _driver);
            while (i > 0)
            {
                i--;
                WaitUtils.WaitUntilVisible(FolderActionDropDown[i], _driver);
                FolderActionDropDown[i].Click();
                WaitUtils.WaitUntilVisible(DeleteButton, _driver);
                DeleteButton.Click();
                WaitUtils.WaitUntilVisible(ConfirmButton, _driver);
                ConfirmButton.Click();
                WaitUtils.WaitUntilInvisible(ConfirmButton, _driver);
                if (FoldersList.Count == i + 1)
                {
                    WaitUtils.WaitUntilInvisible(FolderActionDropDown[i], _driver);
                }
            }
            return(this);
        }