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)); }
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(); } } }
public void SetRegistrationDateFrom(int year) { _firstRegistrationDateFrom.Click(); _firstRegistrationDateFromDropdown.Click(); foreach (var option in _firstRegistrationDateFromDropdownOptions) { if (option.Text.Equals(year.ToString())) { option.Click(); } } }
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); }
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)); }
internal OrganizationPage LoginButton() { submitButton.Click(); return(new OrganizationPage(DriverContext)); }
public void SearchByRequest(string searchRequest) { SearchButton.Click(); SearchInput.SetValue(searchRequest) .PressEnter(); }
internal EditAdditionalField EditAdditionalField() { editIcon.Click(); return(new EditAdditionalField(DriverContext)); }
internal DashboardPage SignIn() { signInButton.Click(); return(new DashboardPage(DriverContext)); }
internal LoginPage Submit() { nextButton.Click(); return(this); }
internal AddUserModal SelectPowRx(string license) { permissionDropdown.Hover().Click(); powRxRole.Click(); return(this); }
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)); }
internal PatientDocuments ClickUploadDocuments() { WaitForNot(S(By.Id("patientDocumentAddModal-container")), Be.InDom); uploadDocumentsButton.Click(); return(new PatientDocuments(DriverContext)); }
public void ClearCompleted() { clearCompleted.Click(); clearCompleted.ShouldNot(Be.Visible); }
internal PatientDocuments Upload() { uploadButton.Click(); return(new PatientDocuments(DriverContext)); }
internal UserManagement Submit() { buttonSearch.Click(); return(new UserManagement(DriverContext)); }