Пример #1
0
        public void SignInWithSpecialPassword(string email, string password)
        {
            var nav = new NavigationSteps();
            var button = new ButtonSteps();
            var text = new TextFieldSteps();
            var link = new LinkSteps();

            nav.GoToPage(HomePage.TitleText);
            nav.GoToPage(SignOutPage.TitleText);
            SignInEvents.ClearSigningEmailAddress();
            nav.GoToPage(SignOnPage.TitleText);
            nav.SeePage(SignOnPage.TitleText);
            text.TypeIntoTextField(email, SignOnPage.EmailAddressLabel);
            button.ClickLabeledSubmitButton(SignOnPage.SubmitButtonLabel);
            nav.SeePage(SignInPage.TitleText);
            text.TypeIntoTextField(password, SignInPage.PasswordLabel);
            button.ClickLabeledSubmitButton(SignInPage.SubmitButtonLabel);
            nav.SeePage(MyHomePage.TitleText);
            link.SeeLinkWithText("Sign Out");
        }
Пример #2
0
        public void SignInWithSpecialPassword(string email, string password)
        {
            var nav    = new NavigationSteps();
            var button = new ButtonSteps();
            var text   = new TextFieldSteps();
            var link   = new LinkSteps();

            nav.GoToPage(HomePage.TitleText);
            nav.GoToPage(SignOutPage.TitleText);
            SignInEvents.ClearSigningEmailAddress();
            nav.GoToPage(SignOnPage.TitleText);
            nav.SeePage(SignOnPage.TitleText);
            text.TypeIntoTextField(email, SignOnPage.EmailAddressLabel);
            button.ClickLabeledSubmitButton(SignOnPage.SubmitButtonLabel);
            nav.SeePage(SignInPage.TitleText);
            text.TypeIntoTextField(password, SignInPage.PasswordLabel);
            button.ClickLabeledSubmitButton(SignInPage.SubmitButtonLabel);
            nav.SeePage(MyHomePage.TitleText);
            link.SeeLinkWithText("Sign Out");
        }