示例#1
0
        internal AddUserModal SelectNowRx(string license)
        {
            permissionDropdown.Hover().Click();
            nowRxRole.Click();
            Assert.IsTrue(checkboxes[5].Displayed);
            IList <string> checkbox = new List <string>();

            foreach (IWebElement element in checkboxes)
            {
                checkbox.Add(element.ToString());
                Console.WriteLine(element.Text);
            }
            return(this);
        }
 internal ReferralFormConfiguration DeleteField()
 {
     deleteIcon.Click();
     //confirm action
     S(".btn.btn-warning").Click();
     return(this);
 }
 internal PatientCardsPage OpenPatient(string tabName)
 {
     //patientTab = MenuIsCollapsed ? S("#navbar-collapse #nav-item-patients") : S(".inset-nav #nav-item-patients");
     //ClickNavigationLink(patientTab);
     //WaitFor(S("#count-top"), Be.Visible);
     patientTab.Click();
     return(new PatientCardsPage(DriverContext));
 }
示例#4
0
        public void SortByPrice(bool sortType) // true as ASC, false as DESC
        {
            _sortDropdown.Click();

            foreach (var option in _sortDropdownOptions)
            {
                if (option.Text.Equals("Höchster Preis"))
                {
                    option.Click();
                }
            }
        }
示例#5
0
        public void SetRegistrationDateFrom(int year)
        {
            _firstRegistrationDateFrom.Click();
            _firstRegistrationDateFromDropdown.Click();

            foreach (var option in _firstRegistrationDateFromDropdownOptions)
            {
                if (option.Text.Equals(year.ToString()))
                {
                    option.Click();
                }
            }
        }
示例#6
0
 public void SetEmployeeDataAndView(String strEmployeeName, String date)
 {
     TxtEmployeeName.Should(Be.Visible).SetValue(strEmployeeName);
     EmployeeSearchResultSection.Should(Have.Text(strEmployeeName)).Click();
     // Set date via JS.
     Selene.ExecuteScript(
         @"
             document.getElementById('attendance_date')
                     .value = " + '"' + date + '"' + ""
         );
     BtnView.Click();
     TableResults.Should(Be.Visible);
 }
示例#7
0
 internal PatientDocuments ChooseVirusFile(string documents)
 {
     try
     {
         chooseFile.Click();
     }
     catch (Exception)
     {
         chooseFile.Click();
     }
     Thread.Sleep(1000);
     //AutoIT= Handles Windows that do not belong to browser.
     AutoItX.WinActivate("Open");
     AutoItX.Send("C:\\Users\\sabina.dovlati\\Desktop\\eicar.txt");
     Thread.Sleep(1000);
     AutoItX.Send(@"{ENTER}");
     Thread.Sleep(1000);
     return(new PatientDocuments(DriverContext));
 }
 internal AdminPage OpenAdmin(string tabName)
 {
     adminTab.Click();
     return(new AdminPage(DriverContext));
 }
示例#9
0
 internal OrganizationPage LoginButton()
 {
     submitButton.Click();
     return(new OrganizationPage(DriverContext));
 }
示例#10
0
 public void SearchByRequest(string searchRequest)
 {
     SearchButton.Click();
     SearchInput.SetValue(searchRequest)
     .PressEnter();
 }
 internal EditAdditionalField EditAdditionalField()
 {
     editIcon.Click();
     return(new EditAdditionalField(DriverContext));
 }
示例#12
0
 internal DashboardPage SignIn()
 {
     signInButton.Click();
     return(new DashboardPage(DriverContext));
 }
示例#13
0
 internal LoginPage Submit()
 {
     nextButton.Click();
     return(this);
 }
示例#14
0
 internal AddUserModal SelectPowRx(string license)
 {
     permissionDropdown.Hover().Click();
     powRxRole.Click();
     return(this);
 }
示例#15
0
 private void Login(String txtUserName, String txtUserPassword)
 {
     TxtUsernameField.Should(Be.Visible).SetValue(txtUserName);
     TxtPasswordField.Should(Be.Visible).SetValue(txtUserPassword);
     BtnLogin.Click();
 }
 internal PatientDocuments OpenDocuments(string subtab)
 {
     documentsSubtab.Click();
     return(new PatientDocuments(DriverContext));
 }
示例#17
0
 internal PatientDocuments ClickUploadDocuments()
 {
     WaitForNot(S(By.Id("patientDocumentAddModal-container")), Be.InDom);
     uploadDocumentsButton.Click();
     return(new PatientDocuments(DriverContext));
 }
示例#18
0
 public void ClearCompleted()
 {
     clearCompleted.Click();
     clearCompleted.ShouldNot(Be.Visible);
 }
示例#19
0
 internal PatientDocuments Upload()
 {
     uploadButton.Click();
     return(new PatientDocuments(DriverContext));
 }
示例#20
0
 internal UserManagement Submit()
 {
     buttonSearch.Click();
     return(new UserManagement(DriverContext));
 }