public void Test1() { var indexpage = new IndexPage(); var authenticationPage = indexpage.ClickSingIn().AuthenticationPage; authenticationPage.TypeEmailAddress("asdfasdf"); authenticationPage.ClickOnCreateAnAccount(); var message = authenticationPage.GetErrorMessage(); Assert.AreEqual("Invalid email address.", message); }