예제 #1
0
 public void GetProfile()
 {
     HomePage.goToPage();
     HomePage.OpenProfile();
     Assert.AreEqual("Hej!", HomePage.GetLoyaltyHeader());
     Assert.AreEqual("Sign in", HomePage.SignInText());
     HomePage.CloseProfile();
 }
예제 #2
0
 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());
 }
예제 #3
0
        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();
        }