public static void VerifyPageElements() { VerifyElement.AreEqual(generateResidentsReportHeader, "Generate Residents Report"); VerifyElement.IsPresent(selectLocationDropdown); VerifyElement.IsPresent(cancelButton); VerifyElement.IsPresent(confirmButton); }
//[Test] public void TC038_NursingIndexAndRUGIVReimbersementReport_PageObjectVerificationPageTest() { Browser.Open(); LoginPage.SignIn(); //LandingPage.NavigateToReportsFormsPage(); //DashboardPage.NavigateToBilling(); //DashboardPage.NavigateToReimbursemenet(); Driver.Instance.Navigate().GoToUrl("http://cariboudevweb.dssinc.com/CaribouCLCSuite/menu/dashboard/rugiv"); Driver.WaitFor(2); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.homeIcon); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.caribouCLSSuiteNavbar); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.reportsFormsNavbar); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.nursingIndexAndRugIVReimbursementNavbar); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.notificationBellIcon); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.syncStatusIcon); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.profileIcon); VerifyElement.AreEqual(NursingIndexAndRUGIVReimbursementReportPage.pageHeader, "Nursing Index and RUG-IV Reimbursement Report"); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.selectDateFilter); Driver.ClickOn(NursingIndexAndRUGIVReimbursementReportPage.selectDateFilter); Driver.WaitFor(2); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.applyButton); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.cancelButton); Driver.ClickOn(NursingIndexAndRUGIVReimbursementReportPage.cancelButton); Driver.WaitFor(2); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.selectLocationDropdown); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.caribouCLSSuiteFooter); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.versionFooter); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.userFooter); VerifyElement.IsPresent(NursingIndexAndRUGIVReimbursementReportPage.developedByFooter); }
public static void VerifyPageElements() { VerifyElement.TitleIsPresent("Caribou CLC Suite"); VerifyElement.IsPresent(homeIcon); VerifyElement.IsPresent(workInProgressIcon); VerifyElement.AreEqual(workInProgressTitle, "Work In Progress"); VerifyElement.IsPresent(notificationBellIcon); VerifyElement.IsPresent(syncStatusIcon); VerifyElement.IsPresent(profileIcon); VerifyElement.AreEqual(pageHeader, "Work In Progress"); VerifyElement.AreEqual(obraFilterButtonChecked, "OBRA"); VerifyElement.AreEqual(ppsFilterButtonChecked, "PPS"); VerifyElement.IsPresent(sliderBar); VerifyElement.AreEqual(residentColumnLabel, "Resident"); VerifyElement.AreEqual(admitDischargeColumnLabel, "Admit Discharge"); VerifyElement.AreEqual(assessmentTypeColumnLabel, "AssessmentsPage Type"); VerifyElement.AreEqual(ardColumnLabel, "ARD"); VerifyElement.AreEqual(rnVerifyColumnLabel, "RN Verify"); VerifyElement.AreEqual(completeByDateColumnLabel, "Complete By Date"); VerifyElement.AreEqual(caaCompleteByColumnLabel, "CAA Complete By"); VerifyElement.AreEqual(carePlanReviewColumnLabel, "Care Plan Review"); VerifyElement.IsPresent(refreshButton); //Residents Tiles //OPEN WIP button for each residents //Number of page on the list //Number of Assessments in the lower right corner VerifyElement.IsPresent(caribouCLSSuiteFooter); VerifyElement.AreEqual(versionFooter, "v2.1.1.49"); VerifyElement.AreEqual(userFooter, "Selenium, Facility"); VerifyElement.IsPresent(developedByFooter); }
public void C_WIP_Sort_OBRA_PPS_buttons() { Browser.Open(); LoginPage.SignIn(); //Step 1 Select Work In Progress tile. LandingPage.NavigateToWorkInProgressPage(); //Step 2 Verify that OBRA and PPS buttons checked VerifyElement.IsPresent(WorkInProgressPage.obraFilterButtonChecked); VerifyElement.IsPresent(WorkInProgressPage.ppsFilterButtonChecked); //Step 3 Verify that Work In Progress page is include OBRA and PPS assessments SchedulePage.MoveSlider(120); Driver.WaitFor(2); WorkInProgressPage.VerifyOBRAAssessments(); WorkInProgressPage.VerifyPPSAssessments(); //Step 4 Click OBRA button Driver.ClickOn(WorkInProgressPage.obraFilterButtonChecked); //Step 5 Verify that Work In Progress page is include only PPS assessments WorkInProgressPage.VerifyPPSAssessments(); //Step 6 Click PPS button Driver.ClickOn(WorkInProgressPage.ppsFilterButtonChecked); //Step 7 Verify that Schedule page is include OBRA and PPS assessments //Step 8 Click OBRA button Driver.ClickOn(WorkInProgressPage.obraFilterButtonUnchecked); //Step 9 Verify that Work In Progress page page is include only OBRA assessments WorkInProgressPage.VerifyOBRAAssessments(); }
public void EO_Create_Entry_Tracking_Validate_NT_item_set_displays() { Browser.Open(); LoginPage.SignIn(); //Step 1 Click the Resident History Tile. LandingPage.NavigateToResidentHistoryPage(); //Step 2 Enter the name of the resident to create the Entry Tracking assessment on in the Resident History Sear box SearchResidentsPage.FindResidentWithAssessment(); //Step 3 Select the resident tile. //Step 4 Click the "Create MDS" button. Driver.ClickOn(ResidentsHistoryPage.createNewMDSBtn); SchedulePage.VistALogin(); //Step 5 Select the correct coding for an NT item set. CreateNewMDSPage.AddEntryDate(); //The NC item set coding is as follows: //99 Driver.ClickOn(SchedulePage.a99RadioBtn); //99. Driver.ClickOn(SchedulePage.b99RadioBtn); //0. Driver.ClickOn(SchedulePage.c0RadioBtn); //01. Driver.ClickOn(SchedulePage.f01RadioBtn); //Step 6 Click the "Create" button. Driver.ClickOn(SchedulePage.createNewMDSCreateBtnEnabled); //Step 7 By comparing with the currently coded specs, verify that the assessment that is displayed, matches that of the CMS NT items set spec from the manual. //Validate Section A - Z. VerifyElement.IsPresent(AssessmentPage.sectionALink); VerifyElement.IsPresent(AssessmentPage.sectionZLink); }
public void TC015_UserMenu_SignOut_Validation() { Browser.Open(); LoginPage.SignIn(); UserMenu.SignOut(); VerifyElement.AreEqual(LoginPage.pageHeader, "Caribou CLC Suite"); }
public static void VerifyPageElements() { VerifyElement.IsPresent(homeIcon); VerifyElement.TitleIsPresent("Caribou CLC Suite"); VerifyElement.IsPresent(reportsFormsNavbar); VerifyElement.IsPresent(cms802Navbar); VerifyElement.IsPresent(notificationBellIcon); VerifyElement.IsPresent(syncStatusIcon); VerifyElement.IsPresent(profileIcon); VerifyElement.AreEqual(pageHeader, "CMS-802 Roster/Sample Matrix"); VerifyElement.IsPresent(printButton); VerifyElement.IsPresent(instructionsButton); VerifyElement.IsPresent(addRowButton); VerifyElement.IsPresent(saveButton); VerifyElement.IsPresent(selectExistingButton); VerifyElement.IsPresent(createNewButton); VerifyElement.AreEqual(informationMessage, "All information entered by computer should be verified by a staff member knowledgeable about the resident population."); //Neighborhoods VerifyElement.AreEqual(neighborhoodsHeader, "Neighborhoods"); VerifyElement.AreEqual(selectNeighborhoodLabel, "Select Neighborhood"); VerifyElement.IsPresent(selectNeighborhoodDropdown); VerifyElement.IsPresent(cancelButton); VerifyElement.IsPresent(confrimButton); VerifyElement.AreEqual(noCurrentReportMessage, "(No Current Report)"); VerifyElement.IsPresent(caribouCLSSuiteFooter); VerifyElement.IsPresent(versionFooter); VerifyElement.IsPresent(userFooter); VerifyElement.IsPresent(developedByFooter); }
public static void VerifyPageElements() { VerifyElement.IsPresent(homeIcon); VerifyElement.IsPresent(caribouCLSSuiteNavbar); VerifyElement.IsPresent(adminNavbar); VerifyElement.IsPresent(notificationsNavbar); VerifyElement.IsPresent(notificationBellIcon); VerifyElement.IsPresent(syncStatusIcon); VerifyElement.IsPresent(profileIcon); VerifyElement.AreEqual(pageHeader, "Notifications"); VerifyElement.AreEqual(dateTimeColumnLabel, "Date & Time"); VerifyElement.AreEqual(descriptionColumnLabel, "Description"); VerifyElement.AreEqual(typeColumnLabel, "Type"); VerifyElement.AreEqual(actionColumnLabel, "Action"); VerifyElement.IsPresent(reloadListButton); VerifyElement.IsPresent(approveAccessButton); VerifyElement.IsPresent(clearButton); VerifyElement.IsPresent(previousButton); VerifyElement.IsPresent(nextButton); //Bottom VerifyElement.IsPresent(caribouCLSSuiteFooter); VerifyElement.IsPresent(versionFooter); VerifyElement.IsPresent(userFooter); VerifyElement.IsPresent(developedByFooter); }
public void CS_Resident_History_Tile___Filter_By_Neighborhood() { Browser.Open(); LoginPage.SignIn(); //Step 1 Select Resident History tile. LandingPage.NavigateToResidentHistoryPage(); //Step 2 Click drop down selection for "Select Neighborhood" field //Step 3 Click one from existing Neighborhood Driver.SelectDropdown(SearchResidentsPage.selectLocationDropdown, "RAIMDS2"); //Step 4 Verify that only Residents with selected Neighborhood displayed on the page. VerifyElement.AreEqual(SearchResidentsPage.searchResultLastname, "RAIMDSRESIDENT"); //Step 5 Click drop down selection for "Select Neighborhood" field //Step 6 Click another Neighborhood from existing Neighborhood Driver.SelectDropdown(SearchResidentsPage.selectLocationDropdown, "RAIMDS3"); //Step 7 Verify that only Residents with selected Neighborhood displayed on the page. VerifyElement.AreEqual(SearchResidentsPage.searchResultLastname, "RAIMDSRESIDENT"); //Step 8 Click drop down selection for "Select Neighborhood" field //Step 9 Click All Neighborhoods Driver.SelectDropdown(SearchResidentsPage.selectLocationDropdown, "All Neighborhoods"); Driver.WaitFor(2); int residents = Driver.Instance.FindElements(By.XPath("//li[@class='list-group-item ng-scope']")).Count; TestReport.Log(LogStatus.Pass, residents + " Residents are displayed."); //Step 10 Type in "Select Neighborhood" field }
public static void VerifyPageElements() { VerifyElement.IsPresent(homeIcon); VerifyElement.TitleIsPresent("Caribou CLC Suite Quality Indicators & Measures Summary"); VerifyElement.AreEqual(reportsFormsTitle, "Reports & Forms"); VerifyElement.AreEqual(qualityIndicatorsMeasuresSummaryTitle, "Quality Indicators & Measures Summary"); VerifyElement.IsPresent(notificationBellIcon); VerifyElement.IsPresent(syncStatusIcon); VerifyElement.IsPresent(profileIcon); VerifyElement.AreEqual(pageHeader, "Quality Measures Summary"); VerifyElement.IsPresent(selectDateFilter); Driver.ClickOn(selectDateFilter); VerifyElement.IsPresent(applyButton); VerifyElement.IsPresent(cancelButton); VerifyElement.IsPresent(printButton); VerifyElement.IsPresent(wordButton); VerifyElement.IsPresent(createReportButton); VerifyElement.AreEqual(mdsFacilityLevelQualityMeasureReportTitle, "MDS 3.0 Facility Level Quality Measure Report"); VerifyElement.IsPresent(facilityIDLabel); VerifyElement.IsPresent(reportPeriodLabel); VerifyElement.IsPresent(facilityNameLabel); VerifyElement.IsPresent(runDateLabel); VerifyElement.IsPresent(cityStateLabel); VerifyElement.IsPresent(mesureLabel); VerifyElement.IsPresent(measureIDLabel); VerifyElement.IsPresent(dataLabel); VerifyElement.IsPresent(numLabel); VerifyElement.IsPresent(denomLabel); VerifyElement.AreEqual(privacyProtectedDataMessage, "This report may contain privacy protected data and should not be released to public."); VerifyElement.IsPresent(caribouCLSSuiteFooter); VerifyElement.IsPresent(versionFooter); VerifyElement.IsPresent(userFooter); VerifyElement.IsPresent(developedByFooter); }
public void BasicInteractionTest() { using (var setup = new TestSetupHelper("SplitButton Tests")) { SplitButton splitButton = FindElement.ByName <SplitButton>("TestSplitButton"); TextBlock clickCountTextBlock = FindElement.ByName <TextBlock>("ClickCountTextBlock"); TextBlock flyoutOpenedCountTextBlock = FindElement.ByName <TextBlock>("FlyoutOpenedCountTextBlock"); TextBlock flyoutClosedCountTextBlock = FindElement.ByName <TextBlock>("FlyoutClosedCountTextBlock"); Verify.AreEqual("0", clickCountTextBlock.DocumentText); ClickPrimaryButton(splitButton); Verify.AreEqual("1", clickCountTextBlock.DocumentText); VerifyElement.NotFound("TestFlyout", FindBy.Name); Verify.AreEqual("0", flyoutOpenedCountTextBlock.DocumentText); ClickSecondaryButton(splitButton); Verify.AreEqual("1", flyoutOpenedCountTextBlock.DocumentText); VerifyElement.Found("TestFlyout", FindBy.Name); Verify.AreEqual("0", flyoutClosedCountTextBlock.DocumentText); Log.Comment("Close flyout by clicking over the button"); splitButton.Click(); Wait.ForIdle(); Verify.AreEqual("1", flyoutClosedCountTextBlock.DocumentText); } }
public void KeyboardAcceleratorsTest() { if (PlatformConfiguration.IsDevice(DeviceType.Phone)) { Log.Comment("Skipping tests on phone, because menubar is not supported."); return; } using (var setup = new TestSetupHelper("MenuBar Tests")) { if (!ApiInformation.IsTypePresent("Windows.UI.Xaml.Input.KeyboardAccelerator")) { Log.Warning("Test is disabled on versions that not support KeyboardAccelerator"); return; } VerifyElement.NotFound("Undo Clicked", FindBy.Name); KeyboardHelper.PressDownModifierKey(ModifierKey.Control); Log.Comment("Send text z."); TextInput.SendText("z"); KeyboardHelper.ReleaseModifierKey(ModifierKey.Control); Wait.ForIdle(); VerifyElement.Found("Undo Clicked", FindBy.Name); } }
public void TC037_Notifications_PageObjectVerificationPageTest() { Browser.Open(); LoginPage.SignIn(); LandingPage.NavigateToAdminPage(); Driver.WaitFor(2); AdminPage.NavigateToNotifications(); Driver.WaitFor(2); VerifyElement.IsPresent(NotificationsPage.homeIcon); VerifyElement.IsPresent(NotificationsPage.caribouCLSSuiteNavbar); VerifyElement.IsPresent(NotificationsPage.adminNavbar); VerifyElement.IsPresent(NotificationsPage.notificationsNavbar); VerifyElement.IsPresent(NotificationsPage.notificationBellIcon); VerifyElement.IsPresent(NotificationsPage.syncStatusIcon); VerifyElement.IsPresent(NotificationsPage.profileIcon); VerifyElement.AreEqual(NotificationsPage.pageHeader, "Notifications"); VerifyElement.AreEqual(NotificationsPage.dateTimeColumnLabel, "Date & Time"); VerifyElement.AreEqual(NotificationsPage.descriptionColumnLabel, "Description"); VerifyElement.AreEqual(NotificationsPage.typeColumnLabel, "Type"); VerifyElement.AreEqual(NotificationsPage.actionColumnLabel, "Action"); VerifyElement.IsPresent(NotificationsPage.reloadListButton); VerifyElement.IsPresent(NotificationsPage.approveAccessButton); VerifyElement.IsPresent(NotificationsPage.clearButton); VerifyElement.IsPresent(NotificationsPage.previousButton); VerifyElement.IsPresent(NotificationsPage.nextButton); VerifyElement.IsPresent(NotificationsPage.caribouCLSSuiteFooter); VerifyElement.IsPresent(NotificationsPage.versionFooter); VerifyElement.IsPresent(NotificationsPage.userFooter); VerifyElement.IsPresent(NotificationsPage.developedByFooter); }
public void AddRemoveMenuBarItemTest() { if (PlatformConfiguration.IsDevice(DeviceType.Phone)) { Log.Comment("Skipping tests on phone, because menubar is not supported."); return; } using (var setup = new TestSetupHelper("MenuBar Tests")) { var addButton = FindElement.ById <Button>("AddMenuBarItemButton"); var removeButton = FindElement.ById <Button>("RemoveMenuBarItemButton"); Log.Comment("Verify that menu bar items can be added"); addButton.Invoke(); VerifyElement.Found("New Menu Bar Item", FindBy.Name); Log.Comment("Verify that menu bar items can be removed"); removeButton.Invoke(); VerifyElement.NotFound("New Menu Bar Item", FindBy.Name); Log.Comment("Verify that menu bar pre-existing items can be removed"); VerifyElement.Found("Format", FindBy.Name); removeButton.Invoke(); VerifyElement.NotFound("Format", FindBy.Name); } }
public static void VerifyPageElements() { VerifyElement.AreEqual(footerCaribou, "Caribou CLC Suite"); VerifyElement.IsPresent(footerVersion); VerifyElement.IsPresent(footerFacility); VerifyElement.AreEqual(footerCopyright, "Developed by DSS, Inc. © 2016"); }
// Disabled due to: MenuBarTests.KeyboardNavigationWithAccessKeysTest unreliable #135 public void KeyboardNavigationWithAccessKeysTest() { if (PlatformConfiguration.IsDevice(DeviceType.Phone)) { Log.Comment("Skipping tests on phone, because menubar is not supported."); return; } using (var setup = new TestSetupHelper("MenuBar Tests")) { if (!PlatformConfiguration.IsOsVersionGreaterThanOrEqual(OSVersion.Redstone4)) { Log.Warning("Test is disabled on versions older that RS4"); return; } KeyboardHelper.PressDownModifierKey(ModifierKey.Alt); KeyboardHelper.ReleaseModifierKey(ModifierKey.Alt); Wait.ForIdle(); TextInput.SendText("A"); // this clicks File menu bar item Wait.ForIdle(); TextInput.SendText("B"); // this clicks New flyout item Wait.ForIdle(); VerifyElement.Found("New Clicked", FindBy.Name); } }
public static void NavigateToBatchesPage() { Driver.PressEnter(userIcon); Driver.PressEnter(batchTransmitIcon); VerifyElement.AreEqual(batchesTransmitNavbar, "Batches & Transmit"); VerifyElement.AreEqual(batchesNavbar, "Batches"); }
public void KeyboardNavigationWithArrowKeysTest() { if (PlatformConfiguration.IsDevice(DeviceType.Phone)) { Log.Comment("Skipping tests on phone, because menubar is not supported."); return; } using (var setup = new TestSetupHelper("MenuBar Tests")) { var editButton = FindElement.ById <Button>("EditItem"); editButton.Invoke(); VerifyElement.Found("Undo", FindBy.Name); KeyboardHelper.PressKey(Key.Left); VerifyElement.Found("New", FindBy.Name); KeyboardHelper.PressKey(Key.Escape); VerifyElement.NotFound("New", FindBy.Name); if (ApiInformation.IsTypePresent("Windows.UI.Xaml.IUIElement5")) // XYFocusNavigation is only availabe from IUElement5 foward { KeyboardHelper.PressKey(Key.Right); VerifyElement.NotFound("Undo", FindBy.Name); KeyboardHelper.PressKey(Key.Enter); VerifyElement.Found("Undo", FindBy.Name); } } }
public void TC031_GenerateAdhocReport_PageObjectVerificationPageTest() { Browser.Open(); LoginPage.SignIn(); LandingPage.NavigateToReportsFormsPage(); DashboardPage.NavigateToMDSAdHocReports(); Driver.WaitFor(2); Driver.ClickOn(MDSAdhocPage.createReportButton); Driver.WaitFor(2); VerifyElement.AreEqual(MDSAdhocPage.generateAdhocReportHeader, "Generate Adhoc Report"); VerifyElement.IsPresent(MDSAdhocPage.templateTab); VerifyElement.IsPresent(MDSAdhocPage.filterTab); VerifyElement.IsPresent(MDSAdhocPage.searchTab); VerifyElement.IsPresent(MDSAdhocPage.outputTab); VerifyElement.IsPresent(MDSAdhocPage.prevButton); VerifyElement.IsPresent(MDSAdhocPage.nextButton); VerifyElement.AreEqual(MDSAdhocPage.selectSavedReportTemplateLabel, "Select Saved Report Template:"); VerifyElement.IsPresent(MDSAdhocPage.selectSavedReportTemplateField); VerifyElement.AreEqual(MDSAdhocPage.orText, "OR"); VerifyElement.AreEqual(MDSAdhocPage.newReportNameLabel, "New Report Name:"); VerifyElement.IsPresent(MDSAdhocPage.newreportNameField); VerifyElement.IsPresent(MDSAdhocPage.closeButton); VerifyElement.IsPresent(MDSAdhocPage.saveTemplateButton); VerifyElement.IsPresent(MDSAdhocPage.runReportButton); }
public static void VerifyPageElements() { VerifyElement.IsPresent(homeIcon); VerifyElement.IsPresent(caribouCLSSuiteNavbar); VerifyElement.IsPresent(reportsFormsNavbar); VerifyElement.IsPresent(mdsAdhocNavbar); VerifyElement.IsPresent(notificationBellIcon); VerifyElement.IsPresent(syncStatusIcon); VerifyElement.IsPresent(profileIcon); VerifyElement.AreEqual(pageHeader, "MDS Ad-hoc Reports"); VerifyElement.IsPresent(createReportButton); //Generate Adhoc Report VerifyElement.AreEqual(generateAdhocReportHeader, "Generate Addhoc Report"); VerifyElement.IsPresent(templateTab); VerifyElement.IsPresent(filterTab); VerifyElement.IsPresent(searchTab); VerifyElement.IsPresent(outputTab); VerifyElement.IsPresent(prevButton); VerifyElement.IsPresent(nextButton); VerifyElement.AreEqual(selectSavedReportTemplateLabel, "Select Saved Report Template:"); VerifyElement.IsPresent(selectSavedReportTemplateField); VerifyElement.IsPresent(orText); VerifyElement.AreEqual(newReportNameLabel, "New Report Name:"); VerifyElement.IsPresent(newreportNameField); VerifyElement.IsPresent(closeButton); VerifyElement.IsPresent(saveTemplateButton); VerifyElement.IsPresent(runReportButton); //Bottom VerifyElement.IsPresent(caribouCLSSuiteFooter); VerifyElement.IsPresent(versionFooter); VerifyElement.IsPresent(userFooter); VerifyElement.IsPresent(developedByFooter); }
public void CloseSelectionTest() { using (var setup = new TestSetupHelper("TabView Tests")) { UIObject firstTab = FindElement.ByName("FirstTab"); Button closeButton = FindCloseButton(firstTab); Verify.IsNotNull(closeButton); TextBlock selectedIndexTextBlock = FindElement.ByName <TextBlock>("SelectedIndexTextBlock"); Verify.AreEqual(selectedIndexTextBlock.DocumentText, "0"); Log.Comment("When the selected tab is closed, selection should move to the next one."); // Use Tab's close button: closeButton.InvokeAndWait(); VerifyElement.NotFound("FirstTab", FindBy.Name); Verify.AreEqual(selectedIndexTextBlock.DocumentText, "0"); Log.Comment("Select last tab."); UIObject lastTab = FindElement.ByName("LastTab"); lastTab.Click(); Wait.ForIdle(); Verify.AreEqual(selectedIndexTextBlock.DocumentText, "3"); Log.Comment("When the selected tab is last and is closed, selection should move to the previous item."); // Use Middle Click to close the tab: lastTab.Click(PointerButtons.Middle); Wait.ForIdle(); VerifyElement.NotFound("LastTab", FindBy.Name); Verify.AreEqual(selectedIndexTextBlock.DocumentText, "2"); } }
public void AutomationPeerTest() { if (PlatformConfiguration.IsDevice(DeviceType.Phone)) { Log.Comment("Skipping tests on phone, because menubar is not supported."); return; } using (var setup = new TestSetupHelper("MenuBar Tests")) { var fileButton = FindElement.ById <Button>("FileItem"); var fileButtonEC = new ExpandCollapseImplementation(fileButton); // Invoke fileButton.Invoke(); Wait.ForIdle(); VerifyElement.Found("New", FindBy.Name); fileButton.Invoke(); Wait.ForIdle(); VerifyElement.NotFound("New", FindBy.Name); // Expand collapse fileButtonEC.Expand(); Wait.ForIdle(); VerifyElement.Found("New", FindBy.Name); fileButtonEC.Collapse(); Wait.ForIdle(); VerifyElement.NotFound("New", FindBy.Name); // Verify GetNameCore() is working if AutomationProperties.Name isn't set VerifyElement.Found("Format", FindBy.Name); } }
public void TC033_ManualsAndForms_PageObjectVerificationPageTest() { Browser.Open(); LoginPage.SignIn(); LandingPage.NavigateToReportsFormsPage(); DashboardPage.NavigateToManualsAndForms(); Driver.WaitFor(2); VerifyElement.IsPresent(ManualsAndFormsPage.homeIcon); VerifyElement.IsPresent(ManualsAndFormsPage.caribouCLSSuiteNavbar); VerifyElement.IsPresent(ManualsAndFormsPage.reportsFormsNavbar); VerifyElement.IsPresent(ManualsAndFormsPage.notificationBellIcon); VerifyElement.IsPresent(ManualsAndFormsPage.syncStatusIcon); VerifyElement.IsPresent(ManualsAndFormsPage.profileIcon); VerifyElement.AreEqual(ManualsAndFormsPage.pageHeader, "Manuals and Forms"); VerifyElement.IsPresent(ManualsAndFormsPage.mdsRAIManualsLabel); VerifyElement.IsPresent(ManualsAndFormsPage.userManualLink); VerifyElement.IsPresent(ManualsAndFormsPage.mdsFormsLabel); VerifyElement.AreEqual(ManualsAndFormsPage.longTermLabel, "Long Term"); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeComprehensiveLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeDischargeLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeAndSwingBedOMRALink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeAndSwindBedOMRALink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeOMRADischargeLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomePPSLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeQuarterlyLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeAndSwingBedOMRAStartOfTherapyLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeOMRAStartOfTherapyAndDischargeLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeAndSwingBedTrackingLink); VerifyElement.AreEqual(ManualsAndFormsPage.swingBedLabel, "Swing Bed"); VerifyElement.IsPresent(ManualsAndFormsPage.swingBedDischargeLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeAndSwingBedOMRALink); VerifyElement.IsPresent(ManualsAndFormsPage.swingBedPPSLink); VerifyElement.IsPresent(ManualsAndFormsPage.nursingHomeAndSwingBedOMRAStartOfTherapyLink); VerifyElement.AreEqual(ManualsAndFormsPage.caas2015Label, "CAAs 2015"); VerifyElement.IsPresent(ManualsAndFormsPage.deliriumLink); VerifyElement.IsPresent(ManualsAndFormsPage.cognitiveLossDementiaLink); VerifyElement.IsPresent(ManualsAndFormsPage.visualFunctionLink); VerifyElement.IsPresent(ManualsAndFormsPage.communicationLink); VerifyElement.IsPresent(ManualsAndFormsPage.activitesOfDailyLivingLink); VerifyElement.IsPresent(ManualsAndFormsPage.urinaryIncontitenceAndIndwellingCatheterLink); VerifyElement.IsPresent(ManualsAndFormsPage.psychosocialWellBeingLink); VerifyElement.IsPresent(ManualsAndFormsPage.moodStateLink); VerifyElement.IsPresent(ManualsAndFormsPage.behavioralSymptomsLink); VerifyElement.IsPresent(ManualsAndFormsPage.activitesLink); VerifyElement.IsPresent(ManualsAndFormsPage.fallLink); VerifyElement.IsPresent(ManualsAndFormsPage.nutritionalStatusLink); VerifyElement.IsPresent(ManualsAndFormsPage.feedingTubeLink); VerifyElement.IsPresent(ManualsAndFormsPage.dehydrationFluidMaintanceLink); VerifyElement.IsPresent(ManualsAndFormsPage.dentalCareLink); VerifyElement.IsPresent(ManualsAndFormsPage.pressureUlcerLink); VerifyElement.IsPresent(ManualsAndFormsPage.psychotropicMedicationUseLink); VerifyElement.IsPresent(ManualsAndFormsPage.physicalRestraintsLink); VerifyElement.IsPresent(ManualsAndFormsPage.painLink); VerifyElement.IsPresent(ManualsAndFormsPage.returnToCommunityReferralLink); VerifyElement.IsPresent(ManualsAndFormsPage.caribouCLSSuiteFooter); VerifyElement.IsPresent(ManualsAndFormsPage.versionFooter); VerifyElement.IsPresent(ManualsAndFormsPage.userFooter); VerifyElement.IsPresent(ManualsAndFormsPage.developedByFooter); }
public void PaneFooterContentTest() { using (var setup = new TestSetupHelper(new[] { "NavigationView Tests", "NavigationView Test" })) { Log.Comment("Verify that button in PaneFooterContent exists"); VerifyElement.Found("FooterButton", FindBy.Id); } }
public void TC004_SelectFacility_Validation() { Browser.Open(); Driver.InsertText(LoginPage.emailTextField, "*****@*****.**"); Driver.InsertText(LoginPage.passwordTextField, "Dss.1234"); Driver.PressEnter(LoginPage.signinButton); VerifyElement.AreEqual(LoginPage.warningMessage, "Please select a facility"); }
public void TC003_InvalidPassword_Validation() { Browser.Open(); Driver.InsertText(LoginPage.emailTextField, "*****@*****.**"); Driver.InsertText(LoginPage.passwordTextField, "invalid"); Driver.SelectDropdown(LoginPage.selectFacilityDropdown, "Selenium, Facility"); Driver.PressEnter(LoginPage.signinButton); VerifyElement.AreEqual(LoginPage.warningMessage, "The user name or password is incorrect."); }
public static void VerifyPageElements() { VerifyElement.TitleIsPresent("Caribou CLC Suite"); VerifyElement.AreEqual(pageHeader, " Nursing Index and RUG-IV Reimbursement Report"); VerifyElement.IsPresent(selectDateFilter); VerifyElement.IsPresent(applyButton); VerifyElement.IsPresent(cancelButton); VerifyElement.IsPresent(selectLocationDropdown); }
public static void SubmitForgotPassword(string emailLocator, string faclityLocator) { NavigateToForgotPasswordorExpired(); Driver.InsertText(forgotPasswordEmailTextField, emailLocator); Driver.SelectDropdown(selectFacilityDropdown, faclityLocator); Driver.PressEnter(submitButton); VerifyElement.AreEqual(submittedMessage, "Your request is submitted."); Driver.ClickOn(loginLink); }
public static void VerifyPageElements() { VerifyElement.TitleIsPresent("Caribou CLC Suite"); VerifyElement.AreEqual(pageHeader, "Facility Discipline"); VerifyElement.AreEqual(disciplineNameLabel, "Discipline Name"); VerifyElement.AreEqual(descriptionLabel, "Description"); VerifyElement.IsPresent(cancelButton); VerifyElement.IsPresent(saveButton); }
//[TestMethod] // Disabled due to: Multiple unreliable NavigationView tests #134 public void SuppressSelectionItemInvokeTest() { using (IDisposable page1 = new TestSetupHelper("NavigationView Tests"), page2 = new TestSetupHelper("Top NavigationView Store Test")) { var removeItemButton = new Button(FindElement.ById("RemoveItemButton")); var addItemSuppressSelectionButton = new Button(FindElement.ById("AddItemSuppressSelectionButton")); var clearItemInvokedTextButton = new Button(FindElement.ById("ClearItemInvokedTextButton")); removeItemButton.Click(); Wait.ForIdle(); removeItemButton.Click(); Wait.ForIdle(); removeItemButton.Click(); Wait.ForIdle(); addItemSuppressSelectionButton.Click(); Wait.ForIdle(); VerifyElement.Found("sup-selection-nav-item-0", FindBy.Id); var supSelectItem0 = TryFindElement.ById("sup-selection-nav-item-0"); supSelectItem0.Click(); Wait.ForIdle(); var itemInvokedText = TryFindElement.ById("ItemInvokedText"); Verify.AreEqual("New Menu Item S.S", itemInvokedText.GetText()); clearItemInvokedTextButton.Click(); Wait.ForIdle(); Verify.AreEqual(string.Empty, itemInvokedText.GetText()); UIObject moreButton = null; Log.Comment("Adding items until the More button shows up."); while (moreButton == null) { moreButton = TryFindElement.ById("TopNavOverflowButton"); if (moreButton == null) { addItemSuppressSelectionButton.Click(); Log.Comment("Item added."); Wait.ForIdle(); } } moreButton.Click(); Wait.ForIdle(); var firstChildOverflow = GetTopNavigationItems(TopNavPosition.Overflow)[0]; firstChildOverflow.Click(); Wait.ForIdle(); itemInvokedText = TryFindElement.ById("ItemInvokedText"); Verify.AreEqual("New Menu Item S.S", itemInvokedText.GetText()); } }