Beispiel #1
0
        public MyProfilePage NavigateToMyProfile()
        {
            MyProfile = WebElement.FindByXpath("//a[@class='nav-control-link']//span[@class='ng-scope'][contains(text(),'My Profile')]");

            MyProfile.Click();

            MyProfileChoice = WebElement.FindByXpath("//a[@class='nav-subitem-link']//span[@class='ng-scope'][contains(text(),'My Profile')]");

            MyProfileChoice.Click();

            return(new MyProfilePage(GetDriver()));
        }
Beispiel #2
0
        public MainPage Login()
        {
            Email = WebElement.FindById("email");
            Email.Input("*****@*****.**");

            Password = WebElement.FindById("password");
            Password.Input("test3");

            RememberMe = WebElement.FindById("rememberMe");
            RememberMe.Uncheck();

            SignInButton = WebElement.FindByXpath("//button[@class='btn btn-primary ng-scope']");
            SignInButton.Click();

            return(new MainPage(GetDriver()));
        }