예제 #1
0
 public bool SelectFirstSearchRecord()
 {
     try
     {
         System.Threading.Thread.Sleep(3000);
         TestStack.White.UIItems.ListBoxItems.ListItem listView = searchwindow.Get <TestStack.White.UIItems.ListBoxItems.ListItem>(SearchCriteria.ByText("Theranos.PSC.UI.PatientViewModel"));
         listView.Select();
         Thread.Sleep(3000);
         standard.Next();
         return(true);
     }
     catch (Exception)
     {
         Console.WriteLine("Not able to Find any record");
         return(true);
     }
 }
예제 #2
0
 public void Before_Running_Test_Angainst_Billing_Address()
 {
     bip.GoBackToBasicInfoPage();
     standard.Next();
     Console.WriteLine("Verifying if SameAsMaillingAddressChecked is selected or not");
     check = aip.IsSameAsMailingAddressChecked(filename, 1);
     if (check)
     {
         Console.WriteLine("SameAsMaillingAddress is already Check");
         Assert.Pass();
     }
     else
     {
         Console.WriteLine("SameAsMaillingAddress is not checked");
         Assert.Fail();
     }
 }
예제 #3
0
        //Verify if Next button is enable or not
        public bool VerifyAdditionalInfoField()
        {
            bool result = standard.Next();

            return(result);
        }