public void WhenMyAccountPageIsOpened() { MyAccountPage myAccountPage = new MyAccountPage(); Assert.IsTrue(myAccountPage.IsVisible()); var NavigationStep = Driver.FindElement(By.ClassName("navigation_page")).Text; Assert.IsTrue(NavigationStep.Contains("My account")); }
public void WhenClickOnRegisterButton() { CreateAccountPage createAccountPage = new CreateAccountPage(); MyAccountPage myAccountPage = new MyAccountPage(); createAccountPage.ClickRegister(); Wait.Until(condition => condition.FindElement(By.ClassName("icon-user"))); Assert.IsTrue(myAccountPage.IsVisible()); }