Ejemplo n.º 1
0
        public void TestLoginWithVidget()
        {
            landingPage = new LandingPage(webDriver);
            landingPage.Open();
            landingPage.TypeUserNameOrEmail("uuu");
            landingPage.TypePassword("1111");
            landingPage.ClickLoginButton();
            IWebElement alertElement = webDriver.FindElement(By.XPath("//h3[@class = 'widget-title']/following-sibling::p[1]"));

            Assert.IsTrue(alertElement.Text.ToString().Contains("You are currently logged in as uuu. "));
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     webDriver   = new ChromeDriver();
     random      = new Random();
     landingPage = new LandingPage(webDriver);
     landingPage.Open();
     landingPage.ClickPageOfPOstLink();
     postPage       = new PostPage(webDriver);
     commentContent = GetRandomString(20);
     name           = GetRandomString(10);
 }