Exemplo n.º 1
0
        public void IncorrectAuthorize()
        {
            //Arrange
            _helper = new FacebookAuthorizeHelper(_driver);
            _helper.RedirectToAuthorizePage();

            //Act
            _helper.FacebookAuthorize("*****@*****.**", "1111111111");

            //Assert
            var errorText = _driver.FindElement(By.XPath("//*[@id=\"login_form\"]/div[1]/div[1]")).Text;

            Assert.AreEqual(errorMsg, errorText);
        }
Exemplo n.º 2
0
        public void CorrectAuthorize()
        {
            //Arrange
            _helper = new FacebookAuthorizeHelper(_driver);
            _helper.RedirectToAuthorizePage();

            //Act
            _helper.FacebookAuthorize(CredentialClass.Login, CredentialClass.Pass);

            IWebElement res = null;
            res = _driver.FindElement(By.XPath("//*[@id=\"blueBarNAXAnchor\"]/div[1]/div/div/div[2]/ul/li[1]/a/span"));

            //Assert
            Assert.AreNotEqual(null, res);
        }