Beispiel #1
0
 public bool EnterLastName()
 {
     try
     {
         Input.Type(searchwindow, rj.GetElementValue("LastName"), searchpatients["LastName"]);
         return(true);
     }
     catch (Exception) {
         Console.WriteLine("Not able to enter the value");
         return(false);
     }
 }
 //Click on Same As Mailing Address
 public bool SameAsMailingAddress()
 {
     try
     {
         Input.Click(additionalinfowindow, rj.GetElementValue("SameAsMailingAddress"));
         checkvalue = true;
         return(checkvalue);
     }
     catch (Exception)
     {
         Console.WriteLine("Not able to click Same As Mailing Address");
         checkvalue = false;
         return(checkvalue);
     }
 }
Beispiel #3
0
        //Input the value of the patient in PSC
        public bool ProvideBasicInformation(int key)
        {
            bool flag = false;

            GetBasicInformation(key);
            try
            {
                Thread.Sleep(2000);
                string gender = basicinfo["Gender"];
                gender = gender.ToUpper();
                if (gender.Equals("M"))
                {
                    Input.ClickOnSpecificItemByName(basicinfowindow, rj.GetElementValue("Male"));
                }
                else if (gender.Equals("F"))
                {
                    Input.ClickOnSpecificItemByName(basicinfowindow, rj.GetElementValue("Female"));
                }
                else
                {
                    Console.WriteLine("Not able to find the element");
                    flag = true;
                }

                Thread.Sleep(1000);
                if (flag == true)
                {
                    ProvideZipCode(basicinfo["ZipCode"]);
                }
                else
                {
                    Input.TabAndInputText(basicinfo["ZipCode"]);
                }
                Thread.Sleep(1000);
                Input.TabAndInputText(basicinfo["MobilePhone"]);
                Thread.Sleep(1000);
                Input.TabAndInputText(basicinfo["HomePhone"]);
                Thread.Sleep(1000);
                Input.TabAndInputText(basicinfo["Email"]);
                Thread.Sleep(1000);
                ProvidePreferedCommunication(basicinfo["PreferredMethodOfContact"]);
                Thread.Sleep(2000);
                ProvidePreferedLangauge(basicinfo["PreferredCommunicationLangauge"]);

                return(true);
            }
            catch (Exception)
            {
                Console.WriteLine("Not able to provide basic information");
                return(false);
            }
        }
Beispiel #4
0
 //Click on Same As Mailing Address
 public bool SameAsMailingAddress(string value)
 {
     value = value.ToLower();
     if (value.Equals("yes"))
     {
         try
         {
             Input.Click(additionalinfowindow, rj.GetElementValue("SameAsMailingAddress"));
             checkvalue = true;
             return(checkvalue);
         }
         catch (Exception)
         {
             Console.WriteLine("Not able to click Same As Mailing Address");
             checkvalue = false;
             return(checkvalue);
         }
     }
     return(checkvalue);
 }
Beispiel #5
0
 //Provide First Name
 public bool ProvideFirstName(string filename, int key)
 {
     GetBasicInformation(filename, key);
     try
     {
         Input.ClickOnSpecificItemByAutomationID(basicinfowindow, rj.GetElementValue("PatientDOB"));
         Input.ReverseSwitchTextBox();
         Input.ReverseSwitchTextBox();
         Input.ReverseTabAndInputText(basicinfo["FirstName"]);
         return(true);
     }
     catch (Exception)
     {
         Console.WriteLine(">>>>>>>>>>>>>>>>>>> Not able to find input any value on First Name field <<<<<<<<<<<<<<<<<<<<<<<<");
         return(false);
     }
 }