//d. Faceti inscrierea si logati-va cu noul cont. public void VerifySignUpAndLoginWithNewUser() { string Timestamp = System.DateTime.Now.ToString("MM-dd-yyyy-HH-mm-ss"); string User = $"ad_demo_{Timestamp}@test.com"; string Password = "******"; HomePage homePage = new HomePage(Driver); LoginPage loginPage = new LoginPage(Driver); SignUpPage signUpPage = new SignUpPage(Driver); //Arrange NavigateToUrl(SiteUrl); homePage.GoToSignUp(); //Act 1 signUpPage.CreateAccount("AD Demo User", User, "0744123456", "Strada mea, Brasov, Romania", Password); //Assert 1 loginPage.VerifyElementContainsText(loginPage.AlertMessage, "Your account was created, now you can login."); //Act 2 loginPage.AuthenticateUser(User, Password); //Assert2 loginPage.VerifyElementIsDisplayed(homePage.DeconectareButton); }