Esempio n. 1
0
        public void InputUserNameAndPassword(Table table)
        {
            var data = table.CreateInstance<AccountData>();

            _accountLogonPage = BrowserHelper.Browser.Page<AccountLogonPage>();

            _accountLogonPage.UserName = data.UserName;
            _accountLogonPage.Password = data.Password;
        }
Esempio n. 2
0
        public void GivenLoginAlready()
        {
            BrowserHelper.OpenPage("Account/LogOn");
            _accountPage = BrowserHelper.Browser.Page<AccountLogonPage>();

            _accountPage.UserName = BrowserHelper.UserName;
            _accountPage.Password = BrowserHelper.Password;

            _accountPage.Submit();

            var browser = BrowserHelper.Browser;
            Assert.Equal(BrowserHelper.WebsiteUrl, browser.Url);
        }