Example #1
0
        public void TestInitialize()
        {
            _btnFindFriends       = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnFindFriends");
            _btnCancelFindFriends = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnCancelFindFriends");

            _btnAddToInvitation       = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnAddToInvitation");
            _btnCancelAddToInvitation = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnCancelAddToInvitation");

            _btnSendInvitations       = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnSendInvitations");
            _btnCancelSendInvitations = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnCancelSendInvitations");

            _btnUploadCsv       = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnUploadCsv");
            _btnCancelUploadCsv = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnCancelUploadCsv");

            _btnNetworkInvite       = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnNetworkInvite");
            _btnCancelNetworkInvite = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnCancelNetworkInvite");

            _txtEmailAddress     = new HtmlTextBoxTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFromAddressBook_txtEmailAddress");
            _txtProviderPassword = new HtmlPasswordTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFromAddressBook_txtPassword");
            _ddlProviders        = new HtmlDropDownListTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFromAddressBook_ddlProviders");

            _txtFilePath = new HtmlFileTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteEmailClientContacts_txtFilePath");

            _txtEmailAddresses    = new HtmlTextAreaTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFriends_txtEmailAddresses");
            _txtBody              = new HtmlTextAreaTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFriends_txtBody");
            _chkDonationRecipient = new HtmlCheckBoxTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFriends_chkDonationRecipient");

            _loginIdTextBox  = new HtmlTextBoxTester(Browser, "LoginId");
            _passwordTextBox = new HtmlPasswordTester(Browser, "Password");
            _loginButton     = new HtmlButtonTester(Browser, "login");

            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            _emailServer.ClearEmails();

            _activationUrl   = new ReadOnlyApplicationUrl("~/accounts/activation");
            _notActivatedUrl = new ReadOnlyApplicationUrl(true, "~/accounts/notactivated");
        }
Example #2
0
 public void TestInitialize()
 {
     _logoId = new HtmlHiddenTester(Browser, "LogoId");
     _logo   = new HtmlFileTester(Browser, "Logo");
 }