Example #1
0
        public void ThenIShouldAbleToUpdateMyCertificateInformation()
        {
            Driver.Navigate().GoToUrl(new Uri(Settings.AUT + "profile"));
            ProfilePage profilePage = new ProfilePage(Driver);

            profilePage.AddCertificate();
            try
            {
                var spanTex = Driver.FindElement(By.XPath("//div[@class='ant-message-custom-content ant-message-success'][contains(.,'Added record')]")).Text;
                Assert.IsNotEmpty(spanTex);
            }
            catch (Exception e)
            {
                _ = e.Message;
            }

            profilePage.EditCerticate();

            try
            {
                var spanTex = Driver.FindElement(By.XPath("(//span[contains(.,'Updated Certificate')])[2]")).Text;
                Assert.IsNotEmpty(spanTex);
            }
            catch (Exception e)
            {
                _ = e.Message;
            }

            profilePage.DeleteCerticate();
            try
            {
                var spanTex = Driver.FindElement(By.XPath("(//span[contains(.,'Deleted')])[2]")).Text;
                Assert.IsNotEmpty(spanTex);
            }
            catch (Exception e)
            {
                _ = e.Message;
            }
        }