Exemple #1
0
        public void TestInitialize()
        {
            _desiredJobUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/desiredjob");

            _desiredJobTitleTextBox                       = new HtmlTextBoxTester(Browser, "DesiredJobTitle");
            _fullTimeCheckBox                             = new HtmlCheckBoxTester(Browser, "FullTime");
            _partTimeCheckBox                             = new HtmlCheckBoxTester(Browser, "PartTime");
            _contractCheckBox                             = new HtmlCheckBoxTester(Browser, "Contract");
            _tempCheckBox                                 = new HtmlCheckBoxTester(Browser, "Temp");
            _jobShareTextBox                              = new HtmlCheckBoxTester(Browser, "JobShare");
            _availableNowRadioButton                      = new HtmlRadioButtonTester(Browser, "AvailableNow");
            _activelyLookingRadioButton                   = new HtmlRadioButtonTester(Browser, "ActivelyLooking");
            _openToOffersRadioButton                      = new HtmlRadioButtonTester(Browser, "OpenToOffers");
            _notLookingRadioButton                        = new HtmlRadioButtonTester(Browser, "NotLooking");
            _salaryRateYearRadioButton                    = new HtmlRadioButtonTester(Browser, "SalaryRateYear");
            _salaryRateHourRadioButton                    = new HtmlRadioButtonTester(Browser, "SalaryRateHour");
            _salaryLowerBoundTextBox                      = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _isSalaryNotVisibleCheckBox                   = new HtmlCheckBoxTester(Browser, "IsSalaryNotVisible");
            _sendSuggestedJobsCheckBox                    = new HtmlCheckBoxTester(Browser, "SendSuggestedJobs");
            _relocationPreferenceYesRadioButton           = new HtmlRadioButtonTester(Browser, "RelocationPreferenceYes");
            _relocationPreferenceNoRadioButton            = new HtmlRadioButtonTester(Browser, "RelocationPreferenceNo");
            _relocationPreferenceWouldConsiderRadioButton = new HtmlRadioButtonTester(Browser, "RelocationPreferenceWouldConsider");
            _relocationCountryIdsListBox                  = new HtmlListBoxTester(Browser, "RelocationCountryIds");
            _relocationCountryLocationIdsListBox          = new HtmlListBoxTester(Browser, "RelocationCountryLocationIds");
        }
        public void TestInitialize()
        {
            MemberSearchHost.Stop();
            StartHosts();

            _joinUrl       = new ReadOnlyApplicationUrl(true, "~/join");
            _uploadUrl     = new ReadOnlyApplicationUrl(true, "~/api/resumes/upload");
            _parseUrl      = new ReadOnlyApplicationUrl(true, "~/api/resumes/parse");
            _activationUrl = new ReadOnlyApplicationUrl("~/accounts/activation");

            _joinFormId = "JoinForm";

            _personalDetailsFormId      = "PersonalDetailsForm";
            _firstNameTextBox           = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox            = new HtmlTextBoxTester(Browser, "LastName");
            _emailAddressTextBox        = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox         = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _mobileRadioButton          = new HtmlRadioButtonTester(Browser, "Mobile");
            _homeRadioButton            = new HtmlRadioButtonTester(Browser, "Home");
            _workRadioButton            = new HtmlRadioButtonTester(Browser, "Work");
            _passwordTextBox            = new HtmlPasswordTester(Browser, "Password");
            _confirmPasswordTextBox     = new HtmlPasswordTester(Browser, "ConfirmPassword");
            _acceptTermsCheckBox        = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _countryIdDropDownList      = new HtmlDropDownListTester(Browser, "CountryId");
            _locationTextBox            = new HtmlTextBoxTester(Browser, "Location");
            _notLookingRadioButton      = new HtmlRadioButtonTester(Browser, "NotLooking");
            _openToOffersRadioButton    = new HtmlRadioButtonTester(Browser, "OpenToOffers");
            _activelyLookingRadioButton = new HtmlRadioButtonTester(Browser, "ActivelyLooking");
            _availableNowRadioButton    = new HtmlRadioButtonTester(Browser, "AvailableNow");
            _salaryLowerBoundTextBox    = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _salaryRateYearRadioBox     = new HtmlRadioButtonTester(Browser, "SalaryRateYear");
            _salaryRateHourRadioBox     = new HtmlRadioButtonTester(Browser, "SalaryRateHour");

            _jobDetailsFormId = "JobDetailsForm";
        }
Exemple #3
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            _emailServer.ClearEmails();

            _loginIdTextBox          = new HtmlTextBoxTester(Browser, "LoginId");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _employerRadioButton     = new HtmlRadioButtonTester(Browser, "Employer");
            _recruiterRadioButton    = new HtmlRadioButtonTester(Browser, "Recruiter");
            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _industryIdsListBox      = new HtmlListBoxTester(Browser, "IndustryIds");
            _jobTitleTextBox         = new HtmlTextBoxTester(Browser, "JobTitle");
            _saveButton   = new HtmlButtonTester(Browser, "save");
            _cancelButton = new HtmlButtonTester(Browser, "cancel");
            _showSuggestedCandidatesCheckBox    = new HtmlCheckBoxTester(Browser, "ShowSuggestedCandidates");
            _sendSuggestedCandidatesCheckBox    = new HtmlCheckBoxTester(Browser, "SendSuggestedCandidates");
            _receiveSuggestedCandidatesCheckBox = new HtmlCheckBoxTester(Browser, "ReceiveSuggestedCandidates");
            _emailEmployerUpdateCheckBox        = new HtmlCheckBoxTester(Browser, "EmailEmployerUpdate");
            _emailCampaignCheckBox = new HtmlCheckBoxTester(Browser, "EmailCampaign");

            _settingsUrl = new ReadOnlyApplicationUrl(true, "~/employers/settings");
        }
        private void InitialiseTesters()
        {
            _homeJoinFormId = "JoinForm";

            _homeFirstNameTextBox       = new HtmlTextBoxTester(Browser, "FirstName");
            _homeLastNameTextBox        = new HtmlTextBoxTester(Browser, "LastName");
            _homeEmailAddressTextBox    = new HtmlTextBoxTester(Browser, "EmailAddress");
            _homePasswordTextBox        = new HtmlPasswordTester(Browser, "JoinPassword");
            _homeConfirmPasswordTextBox = new HtmlPasswordTester(Browser, "JoinConfirmPassword");
            _homeAcceptTermsCheckBox    = new HtmlCheckBoxTester(Browser, "AcceptTerms");

            _joinFormId = "JoinForm";

            _personalDetailsFormId   = "PersonalDetailsForm";
            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _passwordTextBox         = new HtmlPasswordTester(Browser, "Password");
            _confirmPasswordTextBox  = new HtmlPasswordTester(Browser, "ConfirmPassword");
            _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
            _salaryLowerBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _openToOffersRadioButton = new HtmlRadioButtonTester(Browser, "OpenToOffers");
        }
Exemple #5
0
 public void WebApplyTestsInitialize()
 {
     _coverLetterTextBox  = new HtmlTextBoxTester(Browser, "CoverLetter");
     _profileRadioButton  = new HtmlRadioButtonTester(Browser, "Profile");
     _uploadedRadioButton = new HtmlRadioButtonTester(Browser, "Uploaded");
     _lastUsedRadioButton = new HtmlRadioButtonTester(Browser, "LastUsed");
 }
Exemple #6
0
        public void TestInitialize()
        {
            _contactDetailsUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/contactdetails");

            _firstNameTextBox                = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox                 = new HtmlTextBoxTester(Browser, "LastName");
            _emailAddressTextBox             = new HtmlTextBoxTester(Browser, "EmailAddress");
            _secondaryEmailAddressTextBox    = new HtmlTextBoxTester(Browser, "SecondaryEmailAddress");
            _countryIdDropDownList           = new HtmlDropDownListTester(Browser, "CountryId");
            _locationTextBox                 = new HtmlTextBoxTester(Browser, "Location");
            _phoneNumberTextBox              = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _mobilePrimaryRadioButton        = new HtmlRadioButtonTester(Browser, "Mobile");
            _homePrimaryRadioButton          = new HtmlRadioButtonTester(Browser, "Home");
            _workPrimaryRadioButton          = new HtmlRadioButtonTester(Browser, "Work");
            _secondaryPhoneNumberTextBox     = new HtmlTextBoxTester(Browser, "SecondaryPhoneNumber");
            _mobileSecondaryRadioButton      = new HtmlRadioButtonTester(Browser, "SecondaryMobile");
            _homeSecondaryRadioButton        = new HtmlRadioButtonTester(Browser, "SecondaryHome");
            _workSecondaryRadioButton        = new HtmlRadioButtonTester(Browser, "SecondaryWork");
            _citizenshipTextBox              = new HtmlTextBoxTester(Browser, "Citizenship");
            _citizenRadioButton              = new HtmlRadioButtonTester(Browser, "Citizen");
            _unrestrictedWorkViasRadioButton = new HtmlRadioButtonTester(Browser, "UnrestrictedWorkVisa");
            _restrictedWorkVisaRadioButton   = new HtmlRadioButtonTester(Browser, "RestrictedWorkVisa");
            _noWorkVisaRadioButton           = new HtmlRadioButtonTester(Browser, "NoWorkVisa");
            _notApplicableRadioButton        = new HtmlRadioButtonTester(Browser, "NotApplicable");
            _aboriginalCheckBox              = new HtmlCheckBoxTester(Browser, "Aboriginal");
            _torresIslanderCheckBox          = new HtmlCheckBoxTester(Browser, "TorresIslander");
            _maleRadionButton                = new HtmlRadioButtonTester(Browser, "Male");
            _femaleRadioButton               = new HtmlRadioButtonTester(Browser, "Female");
            _dateOfBirthMonthDropDownList    = new HtmlDropDownListTester(Browser, "DateOfBirthMonth");
            _dateOfBirthYearDropDownList     = new HtmlDropDownListTester(Browser, "DateOfBirthYear");
        }
        public void CandidateListsTestsInitialize()
        {
            _sortOrderDropDownList            = new HtmlDropDownListTester(Browser, "SortOrder");
            _sortOrderIsAscendingRadioButton  = new HtmlRadioButtonTester(Browser, "SortOrderIsAscending");
            _sortOrderIsDescendingRadioButton = new HtmlRadioButtonTester(Browser, "SortOrderIsDescending");

            _baseBlockListsUrl = new ReadOnlyApplicationUrl(true, "~/employers/candidates/blocklists/");
        }
Exemple #8
0
        public void StatusTestInitialize()
        {
            _updateStatusUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/status/update");

            _availableNowRadioButton    = new HtmlRadioButtonTester(Browser, "AvailableNow");
            _activelyLookingRadioButton = new HtmlRadioButtonTester(Browser, "ActivelyLooking");
            _openToOffersRadioButton    = new HtmlRadioButtonTester(Browser, "OpenToOffers");
            _notLookingRadioButton      = new HtmlRadioButtonTester(Browser, "NotLooking");
            _saveButton = new HtmlButtonTester(Browser, "save");
        }
Exemple #9
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _employerRadioButton = new HtmlRadioButtonTester(Browser, "Employer");
            _commentsTextBox     = new HtmlTextAreaTester(Browser, "Comments");
            _deactivateButton    = new HtmlButtonTester(Browser, "deactivate");
            _cancelButton        = new HtmlButtonTester(Browser, "cancel");

            _notActivatedUrl = new ReadOnlyApplicationUrl(true, "~/accounts/notactivated");
        }
Exemple #10
0
        public void EmployerNewJobAdTestsInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _previewButton = new HtmlButtonTester(Browser, "preview");
            _saveButton    = new HtmlButtonTester(Browser, "save");

            _publishButton = new HtmlButtonTester(Browser, "publish");
            _reopenButton  = new HtmlButtonTester(Browser, "reopen");
            _repostButton  = new HtmlButtonTester(Browser, "repost");
            _editButton    = new HtmlButtonTester(Browser, "edit");

            _titleTextBox                   = new HtmlTextBoxTester(Browser, "Title");
            _positionTitleTextBox           = new HtmlTextBoxTester(Browser, "PositionTitle");
            _externalReferenceIdTextBox     = new HtmlTextBoxTester(Browser, "ExternalReferenceId");
            _bulletPoint1TextBox            = new HtmlTextBoxTester(Browser, "BulletPoint1");
            _bulletPoint2TextBox            = new HtmlTextBoxTester(Browser, "BulletPoint2");
            _bulletPoint3TextBox            = new HtmlTextBoxTester(Browser, "BulletPoint3");
            _summaryTextBox                 = new HtmlTextAreaTester(Browser, "Summary");
            _contentTextBox                 = new HtmlTextAreaTester(Browser, "Content");
            _emailAddressTextBox            = new HtmlTextBoxTester(Browser, "EmailAddress");
            _secondaryEmailAddressesTextBox = new HtmlTextBoxTester(Browser, "SecondaryEmailAddresses");
            _phoneNumberTextBox             = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _faxNumberTextBox               = new HtmlTextBoxTester(Browser, "FaxNumber");
            _countryIdDropDownList          = new HtmlDropDownListTester(Browser, "CountryId");
            _locationTextBox                = new HtmlTextBoxTester(Browser, "Location");
            _firstNameTextBox               = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox                = new HtmlTextBoxTester(Browser, "LastName");
            _salaryLowerBoundTextBox        = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _salaryUpperBoundTextBox        = new HtmlTextBoxTester(Browser, "SalaryUpperBound");
            _packageTextBox                 = new HtmlTextBoxTester(Browser, "Package");
            _companyNameTextBox             = new HtmlTextBoxTester(Browser, "CompanyName");
            _hideCompanyCheckBox            = new HtmlCheckBoxTester(Browser, "HideCompany");
            _residencyRequiredCheckBox      = new HtmlCheckBoxTester(Browser, "ResidencyRequired");
            _industryIdsListBox             = new HtmlListBoxTester(Browser, "IndustryIds");
            _fullTimeCheckBox               = new HtmlCheckBoxTester(Browser, "FullTime");
            _partTimeCheckBox               = new HtmlCheckBoxTester(Browser, "PartTime");
            _contractCheckBox               = new HtmlCheckBoxTester(Browser, "Contract");
            _tempCheckBox                   = new HtmlCheckBoxTester(Browser, "Temp");
            _jobShareCheckBox               = new HtmlCheckBoxTester(Browser, "JobShare");
            _expiryTimeTextBox              = new HtmlTextBoxTester(Browser, "ExpiryTime");
            _hideContactDetailsCheckBox     = new HtmlCheckBoxTester(Browser, "HideContactDetails");

            _baseFeaturePack = new HtmlRadioButtonTester(Browser, "BaseFeaturePack");
            _featurePack1    = new HtmlRadioButtonTester(Browser, "FeaturePack1");
            _featurePack2    = new HtmlRadioButtonTester(Browser, "FeaturePack2");

            _accounting     = _industriesQuery.GetIndustry("Accounting");
            _administration = _industriesQuery.GetIndustry("Administration");
        }
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _saveButton = new HtmlButtonTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_btnSave");
            _moderatelyVisibleButton = new HtmlRadioButtonTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucVisibilityBasicSettings_rdoModeratelyVisible");
            _activeButton            = new HtmlRadioButtonTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucWorkStatusSettings_rdoActive");
            _anonResumeCheckBox      = new HtmlCheckBoxTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucEmployerPrivacy_chkAnonResume", false);
            _nameCheckBox            = new HtmlCheckBoxTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucEmployerPrivacy_chkName", false);
            _phoneCheckBox           = new HtmlCheckBoxTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucEmployerPrivacy_chkPhone", false);
            _photoCheckBox           = new HtmlCheckBoxTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucEmployerPrivacy_chkPhoto", false);
            _recentEmployersCheckBox = new HtmlCheckBoxTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucEmployerPrivacy_chkRecentEmployers", false);
            _highlyVisibleButton     = new HtmlRadioButtonTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucVisibilityBasicSettings_rdoHighlyVisible");
            _notLookingButton        = new HtmlRadioButtonTester(Browser, "ctl00_ctl00_ctl00_Body_FormContent_Content_ucWorkStatusSettings_rdoNotLooking");
        }
Exemple #12
0
 private void InitialiseControlTesters()
 {
     _loginIdTextBox          = new HtmlTextBoxTester(Browser, "JoinLoginId");
     _passwordTextBox         = new HtmlPasswordTester(Browser, "JoinPassword");
     _confirmPasswordTextBox  = new HtmlPasswordTester(Browser, "JoinConfirmPassword");
     _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
     _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
     _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
     _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
     _roleRadioButton         = new HtmlRadioButtonTester(Browser, "Employer");
     _industryIdsListBox      = new HtmlListBoxTester(Browser, "IndustryIds");
     _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
     _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
     _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
     _joinButton = new HtmlButtonTester(Browser, "join");
 }
Exemple #13
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _landingJoinUrl       = new ReadOnlyApplicationUrl("~/landing/join.aspx");
            _landingSampleJoinUrl = new ReadOnlyApplicationUrl("~/landing/samplejoin.aspx");
            _joinUrl            = new ReadOnlyApplicationUrl(true, "~/join");
            _personalDetailsUrl = new ReadOnlyApplicationUrl(true, "~/join/personaldetails");
            _jobDetailsUrl      = new ReadOnlyApplicationUrl(true, "~/join/jobdetails");
            _activateUrl        = new ReadOnlyApplicationUrl(true, "~/join/activate");

            _txtFirstName = new HtmlTextBoxTester(Browser, "ctl00_Body_ucJoin_txtFirstName");
            _txtLastName  = new HtmlTextBoxTester(Browser, "ctl00_Body_ucJoin_txtLastName");
            _txtEmail     = new HtmlTextBoxTester(Browser, "ctl00_Body_ucJoin_txtEmail");
            _txtPassword  = new HtmlPasswordTester(Browser, "ctl00_Body_ucJoin_txtPassword");
            _chkAcceptTermsAndConditions = new HtmlCheckBoxTester(Browser, "ctl00_Body_ucJoin_chkAcceptTermsAndConditions", false);
            _btnJoin = new HtmlButtonTester(Browser, "ctl00_Body_btnJoin");

            // To make it portable, names on the sample form are prefixed by "linkme_".
            // (Portable = may be copied to and used on other websites)
            //
            _txtSampleFirstName = new HtmlTextBoxTester(Browser, "linkme_txtFirstName");
            _txtSampleLastName  = new HtmlTextBoxTester(Browser, "linkme_txtLastName");
            _txtSampleEmail     = new HtmlTextBoxTester(Browser, "linkme_txtUsername");
            _txtSamplePassword  = new HtmlPasswordTester(Browser, "linkme_txtPassword");
            _chkSampleAcceptTermsAndConditions = new HtmlCheckBoxTester(Browser, "linkme_chkAcceptTermsAndConditions", false);
            _btnSampleJoin = new HtmlButtonTester(Browser, "linkme_btnJoin");

            _joinFormId = "JoinForm";

            _personalDetailsFormId   = "PersonalDetailsForm";
            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _passwordTextBox         = new HtmlTextBoxTester(Browser, "Password");
            _confirmPasswordTextBox  = new HtmlTextBoxTester(Browser, "ConfirmPassword");
            _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
            _salaryLowerBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _openToOffersRadioButton = new HtmlRadioButtonTester(Browser, "OpenToOffers");

            _jobDetailsFormId             = "JobDetailsForm";
            _maleRadioButton              = new HtmlRadioButtonTester(Browser, "Male");
            _dateOfBirthMonthDropDownList = new HtmlDropDownListTester(Browser, "DateOfBirthMonth");
            _dateOfBirthYearDropDownList  = new HtmlDropDownListTester(Browser, "DateOfBirthYear");
        }
Exemple #14
0
        public void TestInitialize()
        {
            _termsUrl = new ReadOnlyApplicationUrl(true, "~/terms");
            _joinUrl = new ReadOnlyApplicationUrl(true, "~/employers/join");

            _loginIdTextBox = new HtmlTextBoxTester(Browser, "JoinLoginId");
            _passwordTextBox = new HtmlPasswordTester(Browser, "JoinPassword");
            _confirmPasswordTextBox = new HtmlPasswordTester(Browser, "JoinConfirmPassword");
            _firstNameTextBox = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox = new HtmlTextBoxTester(Browser, "LastName");
            _organisationNameTextBox = new HtmlTextBoxTester(Browser, "OrganisationName");
            _locationTextBox = new HtmlTextBoxTester(Browser, "Location");
            _roleRadioButton = new HtmlRadioButtonTester(Browser, "Employer");
            _industryIdsListBox = new HtmlListBoxTester(Browser, "IndustryIds");
            _emailAddressTextBox = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _acceptTermsCheckBox = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _joinButton = new HtmlButtonTester(Browser, "join");
        }
Exemple #15
0
        public void TestInitialize()
        {
            _profileUrl = new ReadOnlyApplicationUrl(true, "~/members/profile");
            _termsUrl   = new ReadOnlyApplicationUrl(true, "~/terms");
            _joinUrl    = new ReadOnlyApplicationUrl(true, "~/join");

            _joinFormId = "JoinForm";

            _personalDetailsFormId   = "PersonalDetailsForm";
            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _passwordTextBox         = new HtmlPasswordTester(Browser, "Password");
            _confirmPasswordTextBox  = new HtmlPasswordTester(Browser, "ConfirmPassword");
            _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
            _salaryLowerBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _openToOffersCheckBox    = new HtmlRadioButtonTester(Browser, "OpenToOffers");
        }
Exemple #16
0
        public void MembersTestsInitialize()
        {
            _fullNameTextBox                       = new HtmlTextBoxTester(Browser, "FullName");
            _primaryPhoneNumberTextBox             = new HtmlTextBoxTester(Browser, "PrimaryPhoneNumber");
            _primaryPhoneNumberMobileRadioButton   = new HtmlRadioButtonTester(Browser, "PrimaryPhoneNumberMobile");
            _primaryPhoneNumberHomeRadioButton     = new HtmlRadioButtonTester(Browser, "PrimaryPhoneNumberHome");
            _primaryPhoneNumberWorkRadioButton     = new HtmlRadioButtonTester(Browser, "PrimaryPhoneNumberWork");
            _secondaryPhoneNumberTextBox           = new HtmlTextBoxTester(Browser, "SecondaryPhoneNumber");
            _secondaryPhoneNumberMobileRadioButton = new HtmlRadioButtonTester(Browser, "SecondaryPhoneNumberMobile");
            _secondaryPhoneNumberHomeRadioButton   = new HtmlRadioButtonTester(Browser, "SecondaryPhoneNumberHome");
            _secondaryPhoneNumberWorkRadioButton   = new HtmlRadioButtonTester(Browser, "SecondaryPhoneNumberWork");
            _tertiaryPhoneNumberTextBox            = new HtmlTextBoxTester(Browser, "TertiaryPhoneNumber");
            _tertiaryPhoneNumberMobileRadioButton  = new HtmlRadioButtonTester(Browser, "TertiaryPhoneNumberMobile");
            _tertiaryPhoneNumberHomeRadioButton    = new HtmlRadioButtonTester(Browser, "TertiaryPhoneNumberHome");
            _tertiaryPhoneNumberWorkRadioButton    = new HtmlRadioButtonTester(Browser, "TertiaryPhoneNumberWork");
            _genderTextBox      = new HtmlTextBoxTester(Browser, "Gender");
            _ageTextBox         = new HtmlTextBoxTester(Browser, "Age");
            _countryTextBox     = new HtmlTextBoxTester(Browser, "Country");
            _locationTextBox    = new HtmlTextBoxTester(Browser, "Location");
            _loginIdTextBox     = new HtmlTextBoxTester(Browser, "LoginId");
            _createdTimeTextBox = new HtmlTextBoxTester(Browser, "CreatedTime");
            _isEnabledTextBox   = new HtmlTextBoxTester(Browser, "IsEnabled");
            _isActivatedTextBox = new HtmlTextBoxTester(Browser, "IsActivated");

            _enableButton     = new HtmlButtonTester(Browser, "enable");
            _disableButton    = new HtmlButtonTester(Browser, "disable");
            _activateButton   = new HtmlButtonTester(Browser, "activate");
            _deactivateButton = new HtmlButtonTester(Browser, "deactivate");

            _changePasswordTextBox     = new HtmlTextBoxTester(Browser, "Password");
            _sendPasswordEmailCheckBox = new HtmlCheckBoxTester(Browser, "SendPasswordEmail");
            _changeButton = new HtmlButtonTester(Browser, "change");

            _passwordTextBox           = new HtmlPasswordTester(Browser, "Password");
            _newPasswordTextBox        = new HtmlPasswordTester(Browser, "NewPassword");
            _confirmNewPasswordTextBox = new HtmlPasswordTester(Browser, "ConfirmNewPassword");
            _saveButton = new HtmlButtonTester(Browser, "save");

            _membersUrl       = new ReadOnlyApplicationUrl(true, "~/administrators/members");
            _searchMembersUrl = new ReadOnlyApplicationUrl(true, "~/administrators/members/search");
        }
Exemple #17
0
        public void TestInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();
            _emailServer.ClearEmails();

            // Join.

            _joinFormId = "JoinForm";

            _personalDetailsFormId   = "PersonalDetailsForm";
            _firstNameTextBox        = new HtmlTextBoxTester(Browser, "FirstName");
            _lastNameTextBox         = new HtmlTextBoxTester(Browser, "LastName");
            _emailAddressTextBox     = new HtmlTextBoxTester(Browser, "EmailAddress");
            _phoneNumberTextBox      = new HtmlTextBoxTester(Browser, "PhoneNumber");
            _passwordTextBox         = new HtmlPasswordTester(Browser, "Password");
            _confirmPasswordTextBox  = new HtmlPasswordTester(Browser, "ConfirmPassword");
            _acceptTermsCheckBox     = new HtmlCheckBoxTester(Browser, "AcceptTerms");
            _locationTextBox         = new HtmlTextBoxTester(Browser, "Location");
            _salaryLowerBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _openToOffersRadioButton = new HtmlRadioButtonTester(Browser, "OpenToOffers");

            _jobDetailsFormId             = "JobDetailsForm";
            _maleRadioButton              = new HtmlRadioButtonTester(Browser, "Male");
            _dateOfBirthMonthDropDownList = new HtmlDropDownListTester(Browser, "DateOfBirthMonth");
            _dateOfBirthYearDropDownList  = new HtmlDropDownListTester(Browser, "DateOfBirthYear");

            // InviteContactsForm

            _txtEmailAddresses  = new HtmlTextAreaTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFriends_txtEmailAddresses");
            _btnSendInvitations = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnSendInvitations");

            // ReceivedInvitiationsFrom

            _btnAccept = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_LeftContent") + "_ucReceivedNetworkInvitationList_rptInvitations_ctl00_btnAccept");

            _joinUrl     = new ReadOnlyApplicationUrl(true, "~/join");
            _activateUrl = new ReadOnlyApplicationUrl(true, "~/join/activate");
            _profileUrl  = new ReadOnlyApplicationUrl(true, "~/members/profile");
        }
Exemple #18
0
        public void MobileSearchTestsInitialize()
        {
            Browser.UseMobileUserAgent = true;

            _allWordsTextBox = new HtmlTextBoxTester(Browser, "KeywordsAdvanced");
            _searchButton    = new HtmlButtonTester(Browser, "searchAdvanced");

            _keywordsTextBox         = new HtmlTextAreaTester(Browser, "Keywords");
            _adTitleTextBox          = new HtmlTextAreaTester(Browser, "AdTitle");
            _advertiserTextBox       = new HtmlTextBoxTester(Browser, "Advertiser");
            _salaryLowerBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _salaryUpperBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryUpperBound");

            _locationTextBox      = new HtmlTextBoxTester(Browser, "Location");
            _distanceDropDownList = new HtmlDropDownListTester(Browser, "Distance");
            _distanceTextBox      = new HtmlTextBoxTester(Browser, "Distance");

            _sortOrderDropDownList = new HtmlDropDownListTester(Browser, "SortOrder");

            _includeSynonymsTextBox = new HtmlHiddenTester(Browser, "IncludeSynonyms");

            _recencyTextBox = new HtmlTextBoxTester(Browser, "Recency");

            _hasAppliedEitherRadioButton = new HtmlRadioButtonTester(Browser, "HasAppliedEither");
            _hasAppliedYesRadioButton    = new HtmlRadioButtonTester(Browser, "HasAppliedYes");
            _hasAppliedNoRadioButton     = new HtmlRadioButtonTester(Browser, "HasAppliedNo");

            _isFlaggedEitherRadioButton = new HtmlRadioButtonTester(Browser, "IsFlaggedEither");
            _isFlaggedYesRadioButton    = new HtmlRadioButtonTester(Browser, "IsFlaggedYes");
            _isFlaggedNoRadioButton     = new HtmlRadioButtonTester(Browser, "IsFlaggedNo");

            _hasNotesEitherRadioButton = new HtmlRadioButtonTester(Browser, "HasNotesEither");
            _hasNotesYesRadioButton    = new HtmlRadioButtonTester(Browser, "HasNotesYes");
            _hasNotesNoRadioButton     = new HtmlRadioButtonTester(Browser, "HasNotesNo");

            _hasViewedEitherRadioButton = new HtmlRadioButtonTester(Browser, "HasViewedEither");
            _hasViewedYesRadioButton    = new HtmlRadioButtonTester(Browser, "HasViewedYes");
            _hasViewedNoRadioButton     = new HtmlRadioButtonTester(Browser, "HasViewedNo");
        }
Exemple #19
0
 public void TestInitialize()
 {
     _certifiedRadioButton    = new HtmlRadioButtonTester(Browser, "ItcraLinkCertified");
     _professionalRadioButton = new HtmlRadioButtonTester(Browser, "ItcraLinkProfessionalMember");
     _memberIdTextBox         = new HtmlTextBoxTester(Browser, "ItcraLinkMemberId");
 }
Exemple #20
0
        public void SearchTestsInitialize()
        {
            ClearSearchIndexes();

            _candidatesUrl      = new ReadOnlyApplicationUrl(true, "~/employers/candidates");
            _searchUrl          = new ReadOnlyApplicationUrl(true, "~/search/candidates");
            _resultsUrl         = new ReadOnlyApplicationUrl("~/search/candidates/results");
            _partialSearchUrl   = new ReadOnlyApplicationUrl("~/search/candidates/partial");
            _baseSavedSearchUrl = new ReadOnlyApplicationUrl("~/search/candidates/saved/");

            _keywordsTextBox        = new HtmlTextBoxTester(Browser, "Keywords");
            _allKeywordsTextBox     = new HtmlTextBoxTester(Browser, "AllKeywords");
            _exactPhraseTextBox     = new HtmlTextBoxTester(Browser, "ExactPhrase");
            _anyKeywordsTester      = new AnyKeywordsTester(Browser, "AnyKeywords1", "AnyKeywords2", "AnyKeywords3");
            _withoutKeywordsTextBox = new HtmlTextBoxTester(Browser, "WithoutKeywords");

            _availableNowCheckBox    = new HtmlCheckBoxTester(Browser, "AvailableNow");
            _activelyLookingCheckBox = new HtmlCheckBoxTester(Browser, "ActivelyLooking");
            _openToOffersCheckBox    = new HtmlCheckBoxTester(Browser, "OpenToOffers");
            _unspecifiedCheckBox     = new HtmlCheckBoxTester(Browser, "Unspecified");

            _fullTimeCheckBox = new HtmlCheckBoxTester(Browser, "FullTime");
            _partTimeCheckBox = new HtmlCheckBoxTester(Browser, "PartTime");
            _contractCheckBox = new HtmlCheckBoxTester(Browser, "Contract");
            _tempCheckBox     = new HtmlCheckBoxTester(Browser, "Temp");
            _jobShareCheckBox = new HtmlCheckBoxTester(Browser, "JobShare");

            _educationKeywordsTextBox = new HtmlTextBoxTester(Browser, "EducationKeywords");

            _allIndustriesCheckBox = new HtmlCheckBoxTester(Browser, "all-industries");
            _industryIdCheckBoxes  = new List <HtmlCheckBoxTester>();
            for (var index = 0; index < _industriesQuery.GetIndustries().Count; ++index)
            {
                _industryIdCheckBoxes.Add(new HtmlCheckBoxTester(Browser, "industry" + index));
            }

            _searchByNameTextBox            = new HtmlTextBoxTester(Browser, "CandidateName");
            _exactMatchNameRadioButton      = new HtmlRadioButtonTester(Browser, "ExactMatch");
            _includeSimilarNamesRadioButton = new HtmlRadioButtonTester(Browser, "CloseMatch");

            _jobTitleTextBox        = new HtmlTextBoxTester(Browser, "JobTitle");
            _desiredJobTitleTextBox = new HtmlTextBoxTester(Browser, "DesiredJobTitle");
            _recentJobsRadioButton  = new HtmlRadioButtonTester(Browser, "RecentJobs");
            _allJobsRadioButton     = new HtmlRadioButtonTester(Browser, "AllJobs");

            _companyKeywordsTextBox     = new HtmlTextBoxTester(Browser, "CompanyKeywords");
            _recentCompaniesRadioButton = new HtmlRadioButtonTester(Browser, "RecentCompanies");
            _allCompaniesRadioButton    = new HtmlRadioButtonTester(Browser, "AllCompanies");
            _lastCompanyRadioButton     = new HtmlRadioButtonTester(Browser, "LastCompany");

            _locationTextBox                    = new HtmlTextBoxTester(Browser, "Location");
            _countryIdDropDownList              = new HtmlDropDownListTester(Browser, "CountryId");
            _distanceDropDownList               = new HtmlDropDownListTester(Browser, "Distance");
            _includeRelocatingCheckBox          = new HtmlCheckBoxTester(Browser, "IncludeRelocating");
            _includeInternationalCheckBox       = new HtmlCheckBoxTester(Browser, "IncludeInternational");
            _includeRelocatingFilterCheckBox    = new HtmlCheckBoxTester(Browser, "IncludeRelocatingFilter");
            _includeInternationalFilterCheckBox = new HtmlCheckBoxTester(Browser, "IncludeInternationalFilter");

            _sortOrderDropDownList            = new HtmlDropDownListTester(Browser, "SortOrder");
            _sortOrderIsAscendingRadioButton  = new HtmlRadioButtonTester(Browser, "SortOrderIsAscending");
            _sortOrderIsDescendingRadioButton = new HtmlRadioButtonTester(Browser, "SortOrderIsDescending");

            _includeSynonymsTextBox = new HtmlHiddenTester(Browser, "IncludeSynonyms");

            _recencyTextBox = new HtmlTextBoxTester(Browser, "Recency");

            _salaryLowerBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryLowerBound");
            _salaryUpperBoundTextBox = new HtmlTextBoxTester(Browser, "SalaryUpperBound");

            _inFolderEitherRadioButton = new HtmlRadioButtonTester(Browser, "InFolderEither");
            _inFolderYesRadioButton    = new HtmlRadioButtonTester(Browser, "InFolderYes");
            _inFolderNoRadioButton     = new HtmlRadioButtonTester(Browser, "InFolderNo");

            _isFlaggedEitherRadioButton = new HtmlRadioButtonTester(Browser, "IsFlaggedEither");
            _isFlaggedYesRadioButton    = new HtmlRadioButtonTester(Browser, "IsFlaggedYes");
            _isFlaggedNoRadioButton     = new HtmlRadioButtonTester(Browser, "IsFlaggedNo");

            _hasNotesEitherRadioButton = new HtmlRadioButtonTester(Browser, "HasNotesEither");
            _hasNotesYesRadioButton    = new HtmlRadioButtonTester(Browser, "HasNotesYes");
            _hasNotesNoRadioButton     = new HtmlRadioButtonTester(Browser, "HasNotesNo");

            _hasViewedEitherRadioButton = new HtmlRadioButtonTester(Browser, "HasViewedEither");
            _hasViewedYesRadioButton    = new HtmlRadioButtonTester(Browser, "HasViewedYes");
            _hasViewedNoRadioButton     = new HtmlRadioButtonTester(Browser, "HasViewedNo");

            _isUnlockedEitherRadioButton = new HtmlRadioButtonTester(Browser, "IsUnlockedEither");
            _isUnlockedYesRadioButton    = new HtmlRadioButtonTester(Browser, "IsUnlockedYes");
            _isUnlockedNoRadioButton     = new HtmlRadioButtonTester(Browser, "IsUnlockedNo");

            _ethnicStatusCheckBox   = new HtmlCheckBoxTester(Browser, "EthnicStatus");
            _aboriginalCheckBox     = new HtmlCheckBoxTester(Browser, "Aboriginal");
            _torresIslanderCheckBox = new HtmlCheckBoxTester(Browser, "TorresIslander");

            _visaStatusCheckBox           = new HtmlCheckBoxTester(Browser, "VisaStatus");
            _citizenCheckBox              = new HtmlCheckBoxTester(Browser, "Citizen");
            _unrestrictedWorkVisaCheckBox = new HtmlCheckBoxTester(Browser, "UnrestrictedWorkVisa");
            _restrictedWorkVisaCheckBox   = new HtmlCheckBoxTester(Browser, "RestrictedWorkVisa");
            _noWorkVisaCheckBox           = new HtmlCheckBoxTester(Browser, "NoWorkVisa");

            _communityIdDropDownList = new HtmlDropDownListTester(Browser, "CommunityId");

            _searchButton = new HtmlButtonTester(Browser, "search");
        }