public void EnterPriceLisTypeScreen()
 {
     Pages.Home_Page.EntePriceListTab();
     PriceListTypeScreen.ClickWait();
     softAssert.VerifyElementIsPresent(PriceListTypeCreate);
     Constant.tmpTableCount = utilityFunction.TableCount(priceListTable);
 }
Ejemplo n.º 2
0
 //create new supplier contact
 public void NewSupplierContactApplication()
 {
     Pages.Supplier_Page.NewSupplierCreateApplication();
     Constant.tmpTableCount = utility.TableCount(supplierContactTable);
     CreateSupplierContact.ClickOn();
     SuppContName.SendKeys("1");
     SaveNewSupplierContact.ClickOn();
     softAsserts.VerifyElementIsPresent(supplierContactNameValidate);
     SuppContName.EnterClearText(Constant.suppContactName);
     SuppContLast.EnterClearText(Constant.suppContactLast);
     SuppContPhone.EnterClearText(Constant.suppContactPhone);
     SaveNewSupplierContact.ClickWait();
     softAsserts.VerifyElementHasEqual(utility.TableCount(supplierContactTable), Constant.tmpTableCount + 1);
 }
Ejemplo n.º 3
0
 public void GoTo()
 {
     Pages.Home_Page.EnterSettingScreen();
     Browser.chromebDriver.FindElement(By.CssSelector("#settingsTabstrip > ul > li:nth-child(4)")).Click();
     //  Pages.Home_Page.DevPricelistScreen.ClickWait();
     Constant.priceListExistCode = Browser.Driver.FindElement(By.XPath("//*[@id='gridPriceListPrices']/div[2]/div[1]/table/tbody/tr[1]/td[1]")).Text;
     Constant.tmpTableCount      = utility.TableCount(priceListTableCount);
 }
Ejemplo n.º 4
0
        public void UploadFileApplication()
        {
            var patientDataID = Browser.Driver.FindElement(By.ClassName("mainTabPrefix")).GetAttribute("data-entity-id");
            var countBefore   = utility.TableCount("//*[@id='tab11_gridCustomerDocuments_" + patientDataID + "']/div[2]/div[1]/table/tbody");

            UplaodFileBtn.ClickOn();
            SelectFile.ClickOn();
            String script = "document.getElementById('SelectFile').value='" + "C:\\\\temp\\\\file.txt" + "';";

            ((IJavaScriptExecutor)Browser.Driver).ExecuteScript(script);
            UploadWindowSave.ClickOn();
            var countAfter = utility.TableCount("//*[@id='tab11_gridCustomerDocuments_" + patientDataID + "']/div[2]/div[1]/table/tbody");

            Assert.AreNotEqual(countBefore, countAfter);
        }
Ejemplo n.º 5
0
 public void EntePriceListTab()
 {
     EnterSettingScreen();
     Browser.chromebDriver.FindElement(DevPriceListScreen).ClickOn();
     Constant.tmpTableCount      = utility.TableCount(Pages.PriceList_Page.priceListTableCount);
     Constant.priceListExistCode = utility.ElementText(Pages.PriceList_Page.priceListFirstCode);
 }
        public void PriceListTaxCreateApplication()
        {
            Pages.PriceListTax_Page.EnterPriceListTaxScreen();

            string useName     = Constant.priceListTax;
            int    countBefore = utility.TableCount("//*[@id='PriceListTaxationGrid']/div[2]/table/tbody");

            PriceListTaxCreate.ClickOn();
            PriceListTaxApprove.ClickOn();
            softAssert.VerifyElementIsPresent(NameErrorMsg);
            PriceListTaxName.EnterText(RandomNumber.taxNumber());
            PriceListTaxApprove.ClickOn();
            int countAfter = utility.TableCount("//*[@id='PriceListTaxationGrid']/div[2]/table/tbody");

            softAssert.VerifyElemenNotHaveEqual(countBefore, countAfter);
        }
Ejemplo n.º 7
0
        public void DragAndDropTemporaryList()
        {
            // //Pages.PriceList_Page.PriceListFirstCodeName();;
            Pages.Patient_Page.NewPatientApplication();
            Pages.Patient_Page.ClosePatientTab.ClickOn();
            Thread.Sleep(500);
            EnterStandBySchedulerList();
            Constant.tmpListCount = utility.ListCount("//*[@id='temp-wait-list']");
            var test           = Browser.Driver.FindElement(By.XPath("//*[@id='tempWaitListPanelBar']/li/span/span[3]")).Text;
            var schedulerRows  = utility.TableCount("//*[@id='scheduler']/table/tbody/tr[2]/td[2]/div/table/tbody");
            var schedulerCells = utility.TableDataCount("//*[@id='scheduler']/table/tbody/tr[2]/td[2]/div/table/tbody");
            int numOfCellInRow = schedulerCells / schedulerRows;
            int currentRow     = 1;

            for (int td = 1; td < schedulerCells;)
            {
                IWebElement singleCell = Browser.Driver.FindElement(By.XPath("//*[@id='scheduler']/table/tbody/tr[2]/td[2]/div/table/tbody/tr[" + currentRow + "]/td[" + td + "]"));
                (new Actions(Browser.chromebDriver)).DoubleClick(singleCell).Perform();
                Thread.Sleep(500);
                if (Pages.Home_Page.ErrorPopup.IsDisplayed("error popup"))
                {
                    //  Pages.Home_Page.ErrorPopup.ClickOn();
                    td++;
                    if (td == numOfCellInRow)
                    {
                        currentRow++;
                        td = 1;
                    }
                }
                else if (Pages.Meeting_Page.CancelMeeting.Displayed)
                {
                    break;
                }
            }
            if (Browser.Driver.FindElement(By.XPath("//*[@id='btnCreateAppointmentSave']")).GetAttribute("aria-disabled").Equals("true"))
            {
                //enter inside exist meeting
                Pages.Meeting_Page.CancelMeeting.ClickOn();
                dragAndDropWaitListAction();
            }
            else if (!Browser.Driver.FindElement(By.XPath("//*[@id='btnCreateAppointmentSave']")).GetAttribute("aria-disabled").Equals("true"))
            {
                Pages.Meeting_Page.CreateMeetingApplication();
                dragAndDropWaitListAction();
            }
        }
Ejemplo n.º 8
0
        public void FillFieldsToDisplay()
        {
            int         fieldsCount = utility.TableCount("//*[@id='grid_FieldList']/div[2]/table/tbody/");
            IWebElement drop        = Browser.Driver.FindElement(By.XPath("//*[@id='grid_SortAndSummary']/div[2]/table/tbody"));

            for (int i = 1; i < 10; i++)
            {
                IWebElement drag = Browser.Driver.FindElement(By.XPath("//*[@id='grid_FieldList']/div[2]/table/tbody/tr[" + i + "]"));
                (new Actions(Browser.chromebDriver)).ClickAndHold(drag).MoveToElement(drop).DragAndDrop(drag, drop).Perform();
            }
        }
Ejemplo n.º 9
0
 public void OpenFormsCategory()
 {
     FormsCategoryBtn.ClickOn();
     softAssert.VerifyElementIsPresent(CreateNewCategory);
     Constant.tmpTableCount = utility.TableCount(formsCategoryTableCount);
 }
Ejemplo n.º 10
0
 public void ImportUserWindow()
 {
     ImportToGroup.ClickOn();
     Constant.tmpTableCount = utility.TableCount(countUserInImport);
 }
Ejemplo n.º 11
0
 public void EnterPracticeWindow()
 {
     PracticesManagerButton.ClickWait();
     Constant.tmpTableCount = utility.TableCount(expertiseTableCount);
 }
Ejemplo n.º 12
0
 public void EnterDepaertmentWindow()
 {
     Browser.chromebDriver.FindElement(DepartmentManagementWindow);
     softAssert.VerifyElementIsPresent(DepartmentCloseButton);
     Constant.tmpTableCount = utility.TableCount(departmentTableCount);
 }
 public void EnterTreatmentPlanPage()
 {
     Pages.Home_Page.EnterGeneralScreen();
     Browser.chromebDriver.FindElement(TreatmentPlanPage, 1000).ClickOn();
     Constant.tmpTableCount = utility.TableCount(treatmentTableCount);
 }
Ejemplo n.º 14
0
 public void GoTo()
 {
     Pages.Patient_Page.PatientVisits.ClickWait();
     Constant.tmpTableCount = utility.TableCount(visitsTableCount);
 }
Ejemplo n.º 15
0
 public void OpenFieldsManager()
 {
     Browser.chromebDriver.FindElement(OpenFieldManager).ClickOn();
     softAssert.VerifyElementPresentInsideWindow(CreateNewField, CloseFieldWindow);
     Constant.tmpTableCount = utility.TableCount(addFieldsableCount);
 }
Ejemplo n.º 16
0
 public void GoTo()
 {
     Pages.Patient_Page.PatientTreatments.ClickWait();
     Constant.tmpTableCount = utility.TableCount("//*[@id='tab3_customerTreatmentsGrid_" + Constant.patientDataID + "']/div[2]/div[1]/table/tbody");
 }
 public void EnterAnamnezaTable()
 {
     Browser.chromebDriver.FindElement(OpenAnamnezaTable, 500).ClickOn();
     softAssert.VerifyElementIsPresent(CloseAnamnezaTable);
     Constant.tmpTableCount = utility.TableCount(anamnezaTableCount);
 }