public void GetProfile() { HomePage.goToPage(); HomePage.OpenProfile(); Assert.AreEqual("Hej!", HomePage.GetLoyaltyHeader()); Assert.AreEqual("Sign in", HomePage.SignInText()); HomePage.CloseProfile(); }
public void LogInAndOut() { LoginPage.Login(username, password); Assert.AreEqual(member, LoginPage.GetMemberName()); HomePage.OpenProfile(); LoginPage.LogOut(); HomePage.WaitForSearchField(); Assert.AreEqual("IKEA US - Furniture and Home Furnishings - IKEA", HomePage.getPageTitle()); }
public void Init() { _driver = new ChromeDriver(); HomePage = new HomePageObjects(_driver); LoginPage = new LoginPageObjects(_driver); username = "******"; password = "******"; member = "Interview Test"; HomePage.goToPage(); HomePage.OpenProfile(); HomePage.SignIn(); }