public void TestDriverFactory() { SearchForAuthorization createNew = new SearchForAuthorization(); createNew.GoTo(); SignIn signIn = new SignIn(); signIn.WaitUntilIsLoaded(); signIn.EnterCredentials(context.EnvConfig.UserCredentials.GetValueOrDefault("defaultUser").UserName, context.EnvConfig.UserCredentials.GetValueOrDefault("defaultUser").Password); createNew.WaitUntilIsLoaded(); createNew.CreateNewAuthorization(); PatientSearch patientSearch = new PatientSearch(); patientSearch.WaitUntilIsLoaded(); patientSearch.ClickSearch(); CreateAuthorization createAuthorization = new CreateAuthorization(); createAuthorization.WaitUntilIsLoaded(); createAuthorization.AgreePopUp.Close(); createAuthorization.SelectServiceType("Chemotherapy"); createAuthorization.SelectPlaceOfService("Home"); // createAuthorization.TypeDischargeDateDirrectly("11/23/2017"); createAuthorization.CopyAdmissionDateToDischargeDate(); createAuthorization.SelectAdmitionType("Elective"); createAuthorization.SelectRequestingProvider("Berks Family Care"); createAuthorization.SearchForTheLastNameOfServicingProviderAndPickFirstFromResults("Ahtaridis"); createAuthorization.SearchForAdditionalProvider("Univ Of Penn Gastroenterology"); createAuthorization.SetDiagnoses("001"); createAuthorization.SetServiceLine("123123", "2", "Month(s)", "2", "Month(s)"); // createAuthorization.UploadAttachment(""); createAuthorization.AddNotes("Some notes"); createAuthorization.Submit(); context.BrowserFactory.CloseWebDriver(); }
public void FailingTest1() { SearchForAuthorization createNew = new SearchForAuthorization(); createNew.GoTo(); SignIn signIn = new SignIn(); signIn.WaitUntilIsLoaded(); signIn.EnterCredentials(context.EnvConfig.UserCredentials.GetValueOrDefault("defaultUser").UserName, context.EnvConfig.UserCredentials.GetValueOrDefault("defaultUser").Password); Assert.Equal(5, Add(2, 2)); }
internal static void SignInAndOpenEAndB(string userName, string password) { SearchForAuthorization createNewPage = new SearchForAuthorization(); createNewPage.GoTo(); SignIn signIn = new SignIn(); signIn.WaitUntilIsLoaded(); signIn.EnterCredentials(userName, password); createNewPage.WaitUntilIsLoaded(); createNewPage.CreateNewAuthorization(); }