public bool NavigateToNewPatientPage()
        {
            executioner.ClickElement("lnk_createNew", "", "", "Click the 'Create Hospital' button", "Should be taken to the new hospital page", true, 10);
            string url = executioner.CurrentFormName_OrURL.ToString();

            return(url.EndsWith("hospital"));
        }
 private void UpdateHospitalEditForm(HospitalModel hospitalData)
 {
     testExecutioner.SetTextOnElement("hospitalName", hospitalData.HospitalName);
     testExecutioner.SetTextOnElement("street", hospitalData.Address);
     testExecutioner.SetTextOnElement("city", hospitalData.City);
     testExecutioner.SetTextOnElement("state", hospitalData.State);
     testExecutioner.ClickElement("saveBtn", "", "", "Enter hospital data, and click 'Save'", "Hospital data should be saved", true, 10);
     testExecutioner.Pause(500);
 }
Exemple #3
0
        public bool LoginToPMS(string username, string password)
        {
            executioner.SetTextOnElement("username", username);
            executioner.SetTextOnElement("password", password);

            executioner.Pause(1000);

            executioner.ClickElement("loginBtn", "", "", "Enter username and password, click the Login button", "", true, 10);

            return(executioner.DoesElementExist("ng-show", "invalidCredentials", "span", 3) == false);
        }