public void TestInitialize() { Resolve <IDbConnectionFactory>().DeleteAllTestData(); ClearSearchIndexes(); _emailServer.ClearEmails(); _newJobAdUrl = new ReadOnlyApplicationUrl(true, "~/employers/jobads/jobad"); _titleTextBox = new HtmlTextBoxTester(Browser, "Title"); _positionTitleTextBox = new HtmlTextBoxTester(Browser, "PositionTitle"); _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"); _locationTextBox = new HtmlTextBoxTester(Browser, "Location"); _companyNameTextBox = new HtmlTextBoxTester(Browser, "CompanyName"); _residencyRequiredCheckBox = new HtmlCheckBoxTester(Browser, "ResidencyRequired"); _industryIdsListBox = new HtmlListBoxTester(Browser, "IndustryIds"); _fullTimeCheckBox = new HtmlCheckBoxTester(Browser, "FullTime"); _hideContactDetailsCheckBox = new HtmlCheckBoxTester(Browser, "HideContactDetails"); _previewButton = new HtmlButtonTester(Browser, "preview"); _publishButton = new HtmlButtonTester(Browser, "publish"); }
public void TestUnsetProperties() { HtmlTextAreaTester textArea = new HtmlTextAreaTester("textAreaDefaults"); Assert.AreEqual(-1, textArea.Cols); Assert.AreEqual(-1, textArea.Rows); }
public void TestProperties() { HtmlTextAreaTester textArea = new HtmlTextAreaTester("textArea"); Assert.AreEqual(42, textArea.Cols); Assert.AreEqual(24, textArea.Rows); }
public void TestInitialize() { JobAdSearchHost.Stop(); JobAdSortHost.Stop(); StartSearchHosts(); StartSortHosts(); _titleTextBox = new HtmlTextBoxTester(Browser, "Title"); _positionTitleTextBox = new HtmlTextBoxTester(Browser, "PositionTitle"); _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"); _locationTextBox = new HtmlTextBoxTester(Browser, "Location"); _companyNameTextBox = new HtmlTextBoxTester(Browser, "CompanyName"); _residencyRequiredCheckBox = new HtmlCheckBoxTester(Browser, "ResidencyRequired"); _industryIdsListBox = new HtmlListBoxTester(Browser, "IndustryIds"); _fullTimeCheckBox = new HtmlCheckBoxTester(Browser, "FullTime"); _hideContactDetailsCheckBox = new HtmlCheckBoxTester(Browser, "HideContactDetails"); _previewButton = new HtmlButtonTester(Browser, "preview"); _publishButton = new HtmlButtonTester(Browser, "publish"); _newJobAdUrl = new ReadOnlyApplicationUrl(true, "~/employers/jobads/jobad"); }
public void TestInitialize() { _careerObjectivesUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/careerobjectives"); _objectiveTextArea = new HtmlTextAreaTester(Browser, "Objective"); _summaryTextArea = new HtmlTextAreaTester(Browser, "Summary"); _skillsTextArea = new HtmlTextAreaTester(Browser, "Skills"); }
public void TestInitialize() { _subjectTextBox = new HtmlTextBoxTester(Browser, "Subject"); _bodyTextArea = new HtmlTextAreaTester(Browser, "Body"); _emailAddressesTextBox = new HtmlTextBoxTester(Browser, "emailAddresses"); _loginIdsTextBox = new HtmlTextBoxTester(Browser, "loginIds"); _sendButton = new HtmlButtonTester(Browser, "send"); _emailServer.ClearEmails(); }
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"); }
public void TestInitialize() { _otherUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/other"); _coursesTextBox = new HtmlTextAreaTester(Browser, "Courses"); _awardsTextBox = new HtmlTextBoxTester(Browser, "Awards"); _professionalTextBox = new HtmlTextBoxTester(Browser, "Professional"); _interestsTextBox = new HtmlTextAreaTester(Browser, "Interests"); _affiliationsTextBox = new HtmlTextBoxTester(Browser, "Affiliations"); _otherTextBox = new HtmlTextAreaTester(Browser, "Other"); _refereesTextBox = new HtmlTextAreaTester(Browser, "Referees"); }
public void TestInitialize() { _educationUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/education"); _highestEducationLevelDropDownList = new HtmlDropDownListTester(Browser, "HighestEducationLevel"); _endDateMonthDropDownList = new HtmlDropDownListTester(Browser, "EndDateMonth"); _endDateYearDropDownList = new HtmlDropDownListTester(Browser, "EndDateYear"); _degreeTextBox = new HtmlTextBoxTester(Browser, "Degree"); _majorTextBox = new HtmlTextBoxTester(Browser, "Major"); _institutionTextBox = new HtmlTextBoxTester(Browser, "Institution"); _cityTextBox = new HtmlTextBoxTester(Browser, "City"); _descriptionTextBox = new HtmlTextAreaTester(Browser, "Description"); }
public void TestInitialize() { Resolve <IDbConnectionFactory>().DeleteAllTestData(); _txtEmailAddresses = new HtmlTextAreaTester(Browser, AddBodyPrefix("FormContent_Content") + "_ucInviteFriends_txtEmailAddresses"); _btnSendInvitations = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnSendInvitations"); _lnkAcceptInvitation = new HtmlLinkButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_lnkAcceptInvitation"); _lnkIgnoreInvitation = new HtmlLinkButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_lnkIgnoreInvitation"); _lnkRemoveFriend = new HtmlLinkTester(Browser, "lnkRemoveFriend"); _lnkViewResume = new HtmlLinkTester(Browser, AddBodyPrefix("FormContent_Content") + "_ahrefViewResume"); _lnkRemoveRepresentative = new HtmlLinkTester(Browser, "lnkRemoveRepresentative"); _btnRemoveRepresentative = new HtmlButtonTester(Browser, AddBodyPrefix("FormContent_Content") + "_btnRemoveRepresentative"); }
public void CampaignsTestsInitialize() { _campaignsUrl = new ReadOnlyApplicationUrl(true, "~/administrators/communications/campaigns"); _newCampaignUrl = new ReadOnlyApplicationUrl(true, "~/administrators/communications/campaigns/campaign/new"); _campaignUrlBase = new ReadOnlyApplicationUrl(true, "~/administrators/communications/campaigns/campaign/"); _nameTextBox = new HtmlTextBoxTester(Browser, "Name"); _categoryDropDownList = new HtmlDropDownListTester(Browser, "Category"); _communicationDefinitionDropDownList = new HtmlDropDownListTester(Browser, "CommunicationDefinitionId"); _communicationCategoryDropDownList = new HtmlDropDownListTester(Browser, "CommunicationCategoryId"); _queryTextArea = new HtmlTextAreaTester(Browser, "Query"); _saveButton = new HtmlButtonTester(Browser, "save"); }
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() { _employmentHistoryUrl = new ReadOnlyApplicationUrl(true, "~/members/profile/employmenthistory"); _recentProfessionDropDownList = new HtmlDropDownListTester(Browser, "RecentProfession"); _recentSeniorityDropDownList = new HtmlDropDownListTester(Browser, "RecentSeniority"); _industryIdsListBox = new HtmlListBoxTester(Browser, "IndustryIds"); _startDateMonthDropDownList = new HtmlDropDownListTester(Browser, "StartDateMonth"); _startDateYearDropDownList = new HtmlDropDownListTester(Browser, "StartDateYear"); _endDateMonthDropDownList = new HtmlDropDownListTester(Browser, "EndDateMonth"); _endDateYearDropDownList = new HtmlDropDownListTester(Browser, "EndDateYear"); _titleTextBox = new HtmlTextBoxTester(Browser, "Title"); _companyTextBox = new HtmlTextBoxTester(Browser, "Company"); _descriptionTextBox = new HtmlTextAreaTester(Browser, "Description"); }
public void TestInitialize() { _contactUsUrl = new ReadOnlyApplicationUrl("~/contactus"); _contactUsPartialUrl = new ReadOnlyApplicationUrl("~/contactus/partial"); _faqUrl = new ReadOnlyApplicationUrl("~/faqs/setting-up-your-profile/09d11385-0213-4157-a5a9-1b2a74e6887e"); _siteIssueUrl = new ReadOnlyApplicationUrl("~/contactus/partial?enquiryType=Report+a+site+issue"); _nameTextBox = new HtmlTextBoxTester(Browser, "Name"); _fromTextBox = new HtmlTextBoxTester(Browser, "From"); _phoneTextBox = new HtmlTextBoxTester(Browser, "PhoneNumber"); _userTypeDropDownList = new HtmlDropDownListTester(Browser, "UserType"); _subcategoryIdDropDownList = new HtmlDropDownListTester(Browser, "MemberSubcategoryId"); _messageTextBox = new HtmlTextAreaTester(Browser, "Message"); }
public void JobG8TestsInitialize() { Resolve <IDbConnectionFactory>().DeleteAllTestData(); _emailServer.ClearEmails(); _jobG8Server = JobG8Host.Start(); _jobG8Server.ClearRequests(); _questionsCoverLetterTextBox = new HtmlTextAreaTester(Browser, "CoverLetter"); _visaDropDownList = new QuestionDropDownListTester(Browser, "78_605"); _phoneNumberTextBox = new QuestionTextBoxTester(Browser, "8"); _mobileTextBox = new QuestionTextBoxTester(Browser, "10"); _availabilityDropDownList = new QuestionDropDownListTester(Browser, "19"); _salaryDropDownList = new QuestionDropDownListTester(Browser, "13"); _questionTesters = new QuestionControlTester[] { _visaDropDownList, _phoneNumberTextBox, _mobileTextBox, _availabilityDropDownList, _salaryDropDownList }; _sendButton = new HtmlButtonTester(Browser, "send"); }
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"); }
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() { _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"); }
public void TestInitialize() { _subjectTextBox = new HtmlTextBoxTester(Browser, "Subject"); _bodyTextArea = new HtmlTextAreaTester(Browser, "Body"); }