public void NewOrderTestsInitialize() { _emailServer.ClearEmails(); _useDiscountCheckBox = new HtmlCheckBoxTester(Browser, "UseDiscount"); _couponCodeTextBox = new HtmlTextBoxTester(Browser, "CouponCode"); _couponIdTextBox = new HtmlHiddenTester(Browser, "CouponId"); }
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"); }
public void TestInitialize() { _logoId = new HtmlHiddenTester(Browser, "LogoId"); _logo = new HtmlFileTester(Browser, "Logo"); }
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"); }