Exemplo n.º 1
0
        public static void AddEmployee(string id, string first, string last, string gender, string email, string phone, string DOB, string joindate, string department, string role)
        {
            CustomControls.click("/html[1]/body[1]/div[2]/nav[1]/div[1]/ul[1]/li[5]/a[1]/span[1]", propertytype.XPath);
            CustomControls.click("/html[1]/body[1]/div[2]/nav[1]/div[1]/ul[1]/li[5]/ul[1]/li[1]/a[1]", propertytype.XPath);
            Wait.ImplicitWait(10);
            CustomControls.Entertext("employee_number", id, propertytype.Id);
            CustomControls.Entertext("employee_first_name", first, propertytype.Id);
            CustomControls.Entertext("employee_last_name", last, propertytype.Id);
            if ((String.Equals(gender, "female")))
            {
                CustomControls.click("/html[1]/body[1]/div[2]/div[2]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/form[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/fieldset[1]/div[5]/div[1]/div[2]/label[1]", propertytype.XPath);
            }
            CustomControls.Entertext("employee_email_id", email, propertytype.Id);
            CustomControls.Entertext("employee_phone_number", phone, propertytype.Id);
            CustomControls.Entertext("employee_dob", DOB, propertytype.Id);
            CustomControls.Entertext("employee_status_date", joindate, propertytype.Id);
            CustomControls.Selectdropdown("employee_department", department, propertytype.Id);
            CustomControls.Selectdropdown("employee_job_title", role, propertytype.Id);

            //submit
            CustomControls.clickable("/html[1]/body[1]/div[2]/div[2]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/form[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/button[2]", propertytype.XPath);
            Wait.ImplicitWait(10);
            //ok
            CustomControls.click("/html/body/div[8]/div[7]/button[2]", propertytype.XPath);
            Wait.ImplicitWait(10);
            //Goback to dashboard
            CustomControls.click("/html/body/div[2]/nav/div/ul/li[3]/a", propertytype.XPath);
        }
Exemplo n.º 2
0
        //Randomly selects a student
        public static void RandomStudent()
        {
            /*Views a random student between 1 and 70*/
            //click dashboard
            CustomControls.click("/html/body/div[2]/nav/div/ul/li[3]/a", propertytype.XPath);
            Wait.ImplicitWait(10);
            CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div/div/a[1]/div/div", propertytype.XPath);
            Wait.ImplicitWait(10);

            //click "records per page" button and select 100
            CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div[3]/div/div/div[1]/div[1]/div/label/select", propertytype.XPath);
            Wait.ImplicitWait(5);
            CustomControls.Selectdropdown("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div[3]/div/div/div[1]/div[1]/div/label/select", "100", propertytype.XPath);
            Wait.ImplicitWait(10);
            //pick a random student
            int num = new Random().Next(1, 70);

            Wait.ajaxWait(3);
            String s = String.Format("//tbody/tr[{0}]/td[10]/a[1]", num);

            //actions>view
            Wait.ajaxWait(3);

            CustomControls.click(s, propertytype.XPath);
            //switch window
            PropertiesCollection.ngdriver.SwitchTo().Window(PropertiesCollection.ngdriver.WindowHandles.Last());
            Wait.ImplicitWait(20); //next task
        }
Exemplo n.º 3
0
 public static void addContact(bool student, contacttype type, string phone)
 {
     if (student)
     {
         Navigate.RandomStudent();
         CustomControls.click("//*[@id=\"tab-profile\"]/div[2]/div/ul/li[1]/a", propertytype.XPath);
         CustomControls.click("//*[@id=\"btn-contact\"]", propertytype.XPath);
     }
     else
     {
         Navigate.RandomEmployee();
         CustomControls.click("//*[@id=\"li-contacts\"]", propertytype.XPath);
         CustomControls.click("//*[@id=\"btn-contact\"]", propertytype.XPath);
     }
     Wait.ImplicitWait(5);
     CustomControls.click("//*[@id=\"contact-type\"]", propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Selectdropdown("//*[@id=\"contact-type\"]", Enum.GetName(typeof(contacttype), type), propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Entertext("//*[@id=\"contact-type-value\"]", phone, propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.click("//*[@id=\"save-close-button\"]", propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.click("//*[@id=\"appbody\"]/div[6]/div[7]/button[2]", propertytype.XPath);
     Wait.ImplicitWait(5);
 }
Exemplo n.º 4
0
 public static void ShowFeeList()
 {
     //Click Dashboard
     CustomControls.click("a[data-license-type='dashboard']", propertytype.CssSelector);
     //Click Fee
     CustomControls.click("//*[@id='side-menu']/li[7]/a", propertytype.XPath);
     //Click Show Fee List
     Wait.ImplicitWait(5);
     CustomControls.click("/html/body/div[2]/nav/div/ul/li[7]/ul/li[2]/a", propertytype.XPath);
     Wait.ImplicitWait(5);
     //Click First Row
     CustomControls.click("//*[@id='feeTbl']/tbody/tr[1]/td[5]/a", propertytype.XPath);
     //Next
     delayfor.delay();
     CustomControls.click("//*[@id='form']/div[3]/ul/li[2]/a", propertytype.XPath);
     //Next
     delayfor.delay();
     CustomControls.click("//*[@id='form']/div[3]/ul/li[2]/a", propertytype.XPath);
     //Next
     delayfor.delay();
     CustomControls.click("//*[@id='form']/div[3]/ul/li[2]/a", propertytype.XPath);
     //Next
     delayfor.delay();
     CustomControls.click("//*[@id='form']/div[3]/ul/li[2]/a", propertytype.XPath);
     //Next
     delayfor.delay();
     CustomControls.click("//*[@id='form']/div[3]/ul/li[2]/a", propertytype.XPath);
     //Finish
     delayfor.delay();
     CustomControls.click("//*[@id='form']/div[3]/ul/li[3]/a", propertytype.XPath);
 }
Exemplo n.º 5
0
        public static void TestMethodLogin()
        {
            Expectedresult = "Dashboard";
            PropertiesCollection.ngdriver = new ChromeDriver();
            PropertiesCollection.ngdriver.Manage().Window.Maximize();
            string url = ConfigurationManager.AppSettings.Get("url");

            // retry if 500 - Internal server error
            for (int i = 0; i < 2; i++)
            {
                try
                {
                    PropertiesCollection.ngdriver.Navigate().GoToUrl(url);
                    if (PropertiesCollection.ngdriver.Title == "E D U C I A N")
                    {
                        break;
                    }
                }

                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
            }
            Wait.ImplicitWait(10);
            Console.WriteLine("landed on the login page");
            CustomControls.Entertext("#inputEmail", ConfigurationManager.AppSettings.Get("username"), propertytype.CssSelector);
            CustomControls.Entertext("#inputPassword", ConfigurationManager.AppSettings.Get("password"), propertytype.CssSelector);
            CustomControls.click("button[type='submit']", propertytype.CssSelector);
            Actualresult = CustomControlsGets.GettextfromLabel("h2[class='breadcumChangeTitle']", propertytype.CssSelector);
            Console.WriteLine("The landed page lands on " + Actualresult);
            Assertions.assertionequals(Actualresult, Expectedresult);
        }
Exemplo n.º 6
0
 public static void AddPaymentCClog(paymentmode payment, string confirmationNumber, string amount, string bankCharges = "0", string creditaccounts = "FDI-987768", string recievedfrom = "CLARENCE ONEIL", string country = "United States", string state = "IL", string city = "Illinois", string pin = "62033", string addressline1 = "2633  Spring Street, Gillespie")
 {
     //Click Dashboard
     CustomControls.click("a[data-license-type='dashboard']", propertytype.CssSelector);
     //Click Fee
     Wait.ImplicitWait(10);
     CustomControls.click("//*[@id='side-menu']/li[7]/a", propertytype.XPath);
     //Click Cash Control Log
     CustomControls.click("/html/body/div[2]/nav/div/ul/li[7]/ul/li[4]/a", propertytype.XPath);
     //Click add button
     CustomControls.click("//*[@id='page-wrapper']/div[2]/div/div[2]/a", propertytype.XPath);
     //Recieved From
     CustomControls.Entertext("#receivedFrom", recievedfrom, propertytype.CssSelector);
     delayfor.delay();
     PropertiesCollection.ngdriver.FindElement(By.CssSelector("#receivedFrom")).SendKeys(Keys.Down);
     delayfor.delay();
     PropertiesCollection.ngdriver.FindElement(By.CssSelector("#receivedFrom")).SendKeys(Keys.Enter);
     PropertiesCollection.ngdriver.FindElement(By.CssSelector("#receivedFrom")).SendKeys(Keys.Enter);
     delayfor.delay();
     //Select Student
     CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div/div[8]/a", propertytype.XPath);
     delayfor.delay();
     CustomControls.Entertext("#registrationNumber", "UID-1003-2021", propertytype.CssSelector);
     CustomControls.click("#searchStudents", propertytype.CssSelector);
     CustomControls.click("#completebatch", propertytype.CssSelector);
     delayfor.delay();
     CustomControls.click("//*[@id='EnrollBtn']", propertytype.XPath);
     //#addressline1
     delayfor.delay();
     CustomControls.Entertext("#addressline1", addressline1, propertytype.CssSelector);
     //country
     CustomControls.click("#country", propertytype.CssSelector);
     CustomControls.Selectdropdown("#country", country, propertytype.CssSelector);
     //#state
     CustomControls.Entertext("#state", state, propertytype.CssSelector);
     //#city
     CustomControls.Entertext("#city", city, propertytype.CssSelector);
     //#pin
     CustomControls.Entertext("#pin", pin, propertytype.CssSelector);
     //#confirmationNumber
     CustomControls.Entertext("#confirmationNumber", confirmationNumber, propertytype.CssSelector);
     //#amount
     CustomControls.Entertext("#amount", amount, propertytype.CssSelector);
     //#bankCharges
     CustomControls.Entertext("#bankCharges", bankCharges, propertytype.CssSelector);
     //payment mode
     CustomControls.click(String.Format("//*[@id='addForm']/div/div/div/div[9]/div/div[{0}]/input", (int)payment), propertytype.XPath);
     //CreditAccounts
     CustomControls.click("#bankAccounts", propertytype.CssSelector);
     CustomControls.Selectdropdown("#bankAccounts", creditaccounts, propertytype.CssSelector);
     //OK
     CustomControls.click("button[class='btn btn-warning btn-outline']", propertytype.CssSelector);
     delayfor.delay();
     //Confirm OK
     CustomControls.click("button[class='confirm']", propertytype.CssSelector);
 }
Exemplo n.º 7
0
 //View an employee with given ID
 public static void ShowEmployee(string id)
 {
     //click dashboard
     CustomControls.click("/html/body/div[2]/nav/div/ul/li[3]/a", propertytype.XPath);
     Wait.ImplicitWait(10);
     //click activeEmployee
     CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div/div/a[2]/div/div", propertytype.XPath);
     Wait.ImplicitWait(10);
     CustomControls.Entertext("/html[1]/body[1]/div[2]/div[2]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[4]/label[1]/input[1]", id, propertytype.XPath);
     CustomControls.click("/html[1]/body[1]/div[2]/div[2]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[4]/label[1]/span[1]/button[1]", propertytype.XPath);
     CustomControls.click("/html[1]/body[1]/div[2]/div[2]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/table[1]/tbody[1]/tr[1]/td[8]/a[1]", propertytype.XPath);
 }
Exemplo n.º 8
0
        public static void FeeCollection(paymentmode payment, string confirmationNumber, string creditaccounts = "FDI-987768")
        {
            /*
             * SHERRI RHODES
             * UID: UID-1025-2021
             * Class: 2nd
             * Roll No.: 2
             * Session: 2021
             * Date Of Birth: 12/23/2004
             * Admission Date: 02/18/2021
             */
            //Click Dashboard
            Wait.ImplicitWait(10);
            CustomControls.click("a[data-license-type='dashboard']", propertytype.CssSelector);
            //Click Fee
            CustomControls.click("//*[@id='side-menu']/li[7]/a", propertytype.XPath);
            //Click Fee Collection
            CustomControls.click("/html/body/div[2]/nav/div/ul/li[7]/ul/li[5]/a", propertytype.XPath);
            //click Student Name
            CustomControls.Entertext("#studentName", "SHERRI RHODES", propertytype.CssSelector);
            delayfor.delay();
            PropertiesCollection.ngdriver.FindElement(By.CssSelector("#studentName")).SendKeys(Keys.Down);
            delayfor.delay();
            PropertiesCollection.ngdriver.FindElement(By.CssSelector("#studentName")).SendKeys(Keys.Enter);

            /*string invoiceno = PropertiesCollection.ngdriver.FindElement(By.XPath("/html[1]/body[1]/div[2]/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/table[1]/tbody[1]/tr[1]/td[3]")).Text;
             * //*[@id="invoiceNo_-3793144930"]
             * CustomControls.click(String.Format("//*[@id='invoiceNo_-{0}']", invoiceno), propertytype.XPath);*/
            CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div[2]/div/div/div/div/div[2]/div/div/div/div[2]/div[1]/div/table/tbody/tr[1]/td[1]/div/input", propertytype.XPath);
            CustomControls.click("//*[@id='applyBtn']", propertytype.XPath);

            //recieved from
            CustomControls.click("//*[@id='receivedFrom']", propertytype.XPath);
            CustomControls.Selectdropdownindex("//*[@id='receivedFrom']", 1, propertytype.XPath);
            //payment mode
            CustomControls.click(String.Format("//*[@id='addForm']/div/div/div/div[11]/div/div[{0}]/input", (int)payment), propertytype.XPath);
            //#confirmationNumber
            CustomControls.Entertext("#confirmationNumber", confirmationNumber, propertytype.CssSelector);
            //CreditAccounts
            CustomControls.click("#bankAccounts", propertytype.CssSelector);
            CustomControls.Selectdropdown("#bankAccounts", creditaccounts, propertytype.CssSelector);
            //save payment
            CustomControls.click("#savePayment", propertytype.CssSelector);
            delayfor.delay();
            CustomControls.click("button[class='confirm']", propertytype.CssSelector);
        }
Exemplo n.º 9
0
        public static void addNote(bool student, string mynote)
        {
            if (student)
            {
                Navigate.RandomStudent();
                CustomControls.click("li[id = 'li-notes'] a[class='rToggle']", propertytype.CssSelector);
            }
            else
            {
                Navigate.RandomEmployee();
                CustomControls.click("li[id='li-notess'] a[class='rToggle']", propertytype.CssSelector);
            }

            Wait.ImplicitWait(5);
            CustomControls.click("#btn-notes", propertytype.CssSelector);
            CustomControls.click("#note-type", propertytype.CssSelector);
            CustomControls.Selectdropdown("#note-type", "Reminder", propertytype.CssSelector);
            CustomControls.Entertext("#note-description", mynote, propertytype.CssSelector);
            CustomControls.click("#save-close-button", propertytype.CssSelector);
            delayfor.delay();
            CustomControls.click("button[class='confirm']", propertytype.CssSelector);
        }
Exemplo n.º 10
0
 public static void addFamily(bool student, relation relationship, string first, string last, string contact, string email, string empRelation = "Brother")
 {
     if (student)
     {
         Navigate.RandomStudent();
         CustomControls.click("li[id='li-family'] a[class='rToggle']", propertytype.CssSelector);
         CustomControls.click("#btn-family", propertytype.CssSelector);
         Wait.ImplicitWait(10);
         //select relation type, for that we need to click the drop down and select the relation type
         CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[1]/div/select", propertytype.XPath);
         CustomControls.Selectdropdown("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[1]/div/select", Enum.GetName(typeof(relation), relationship), propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Entertext("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[3]/div/input", first, propertytype.XPath);
         CustomControls.Entertext("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[5]/div/input", last, propertytype.XPath);
         CustomControls.Entertext("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[6]/div/input", contact, propertytype.XPath);
         CustomControls.Entertext("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[7]/div/input", email, propertytype.XPath);
         //submit
         CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/form/div/div[10]/button[3]", propertytype.XPath);
         //confirmation OK
         CustomControls.click("/html/body/div[6]/div[7]/button[2]", propertytype.XPath);
         delayfor.delay();
     }
     else
     {
         Navigate.RandomEmployee();
         CustomControls.click("li[id='li-familys'] a[class='rToggle']", propertytype.CssSelector);
         CustomControls.click("#btn-family", propertytype.CssSelector);
         Wait.ImplicitWait(10);
         CustomControls.Entertext("#contact-type-name", first + " " + last, propertytype.CssSelector);
         CustomControls.click("#relationship-type", propertytype.CssSelector);
         CustomControls.Selectdropdown("#relationship-type", empRelation, propertytype.CssSelector);
         CustomControls.Entertext("#contact-type-number", contact, propertytype.CssSelector);
         CustomControls.click("//*[@id=\"save-close-button\"]", propertytype.CssSelector);
         delayfor.delay();
         CustomControls.click("button[class='confirm']", propertytype.CssSelector);
         delayfor.delay();
     }
 }
Exemplo n.º 11
0
        //Randomly selects an employee
        public static void RandomEmployee()
        {
            //click dashboard
            CustomControls.click("/html/body/div[2]/nav/div/ul/li[3]/a", propertytype.XPath);
            Wait.ImplicitWait(10);
            //click activeEmployee
            CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div[2]/div/div/div/div/a[2]/div/div", propertytype.XPath);
            Wait.ImplicitWait(10);
            CustomControls.click("/html/body/div[2]/div[2]/div[2]/div/div/div[2]/div/div/div/div[3]/label/select", propertytype.XPath);
            Wait.ImplicitWait(10);
            CustomControls.Selectdropdown("/html/body/div[2]/div[2]/div[2]/div/div/div[2]/div/div/div/div[3]/label/select", "100", propertytype.XPath);
            Wait.ImplicitWait(10);

            // pick a random student
            int    num = new Random().Next(1, 20);
            String s   = String.Format("//tbody/tr[{0}]/td[8]/a[1]", num);

            //actions>view
            CustomControls.click(s, propertytype.XPath);
            //switch window
            PropertiesCollection.ngdriver.SwitchTo().Window(PropertiesCollection.ngdriver.WindowHandles.Last());
            Wait.ImplicitWait(20); //next task
        }
Exemplo n.º 12
0
 public static void addAddress(bool student, addressType type, string address1, string city, string state, string pincode, string country = "Algeria")
 {
     if (student)
     {
         Navigate.RandomStudent();
         Wait.ImplicitWait(5);
         CustomControls.click("//*[@id=\"tab-profile\"]/div[2]/div/ul/li[2]/a", propertytype.XPath);
     }
     else
     {
         Navigate.RandomEmployee();
         CustomControls.click("//*[@id=\"li-addresss\"]", propertytype.XPath);
     }
     CustomControls.click("//*[@id=\"btn-address\"]", propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.click("//select[@id=\"address-type\"]", propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Selectdropdown("//select[@id=\"address-type\"]", Enum.GetName(typeof(addressType), type), propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Entertext("//*[@id=\"address-line1\"]", address1, propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Entertext("//input[@id='city']", city, propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Entertext("//input[@id='state']", state, propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Entertext("//input[@id='pin']", pincode, propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.Entertext("//select[@id='country']", country, propertytype.XPath);
     Wait.ImplicitWait(5);
     CustomControls.click("//*[@id=\"save-close-button\"]", propertytype.XPath);
     delayfor.delay(); //WHAT IS THE ALTERNATIVE HERE, THE ELEMENT IS PRESENT BUT ITS NOT DOING THE JOB ???????
     CustomControls.click("//*[@id=\"appbody\"]/div[6]/div[7]/button[2]", propertytype.XPath);
     if (student)
     {
         CustomControls.click("//*[@id=\"tab-profile\"]/div[2]/div/ul/li[2]/a", propertytype.XPath);
     }
 }
Exemplo n.º 13
0
 public static void editMisc(bool student, string biometric, string bloodgroup = "B+", string height = "170", string weight = "50", string placeofbirth = "Georgia", string language = "English", string nationality = "Dominican", string race = "Other Race", string religion = "Other")
 {
     if (student)
     {
         Navigate.RandomStudent();
         CustomControls.click("//*[@id=\"tab-profile\"]/div[2]/div/ul/li[3]/a", propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"tab-miscellenaous\"]/div/div[1]/button", propertytype.XPath);
         Wait.ImplicitWait(10);
         delayfor.delay();
         CustomControls.Entertext("#biometric_id", biometric, propertytype.CssSelector);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"blood_group\"]", propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Selectdropdown("//*[@id=\"blood_group\"]", bloodgroup, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Entertext("//*[@id=\"height\"]", height, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Entertext("//*[@id=\"weight\"]", weight, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Entertext("//*[@id=\"place_of_birth\"]", placeofbirth, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"language\"]", propertytype.XPath);
         CustomControls.Selectdropdown("//*[@id=\"language\"]", language, propertytype.XPath);
         CustomControls.click("//*[@id=\"nationality\"]", propertytype.XPath);
         CustomControls.Selectdropdown("//*[@id=\"nationality\"]", nationality, propertytype.XPath);
         CustomControls.click("//*[@id=\"race\"]", propertytype.XPath);
         CustomControls.Selectdropdown("//*[@id=\"race\"]", race, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"religion\"]", propertytype.XPath);
         CustomControls.Selectdropdown("//*[@id=\"religion\"]", religion, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"save-close-button\"]", propertytype.XPath);
         Wait.ImplicitWait(10);
         //ok
         CustomControls.click("//*[@id=\"appbody\"]/div[6]/div[7]/button[2]", propertytype.XPath);
     }
     else
     {
         Navigate.RandomEmployee();
         CustomControls.click("//*[@id=\"li-miscellenouss\"]", propertytype.XPath);
         CustomControls.click("//*[@id=\"tab-miscellenous\"]/div[1]/button", propertytype.XPath);
         Wait.ImplicitWait(10);
         delayfor.delay(); //REQUIRED. ASK ALTERNATIVE
         CustomControls.Entertext("/html/body/div[2]/div[2]/div[2]/div/div/div/div/div/div/form/div/div[1]/div/input", biometric, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"employee_blood_group\"]", propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Selectdropdown("//*[@id=\"employee_blood_group\"]", bloodgroup, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.Entertext("//*[@id=\"employee_height\"]", height, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"employee_religion\"]", propertytype.XPath);
         CustomControls.Selectdropdown("//*[@id=\"employee_religion\"]", religion, propertytype.XPath);
         Wait.ImplicitWait(10);
         CustomControls.click("//*[@id=\"save-close-button\"]", propertytype.XPath);
         delayfor.delay();
         //ok
         CustomControls.click("//*[@id=\"appbody\"]/div[6]/div[7]/button[2]", propertytype.XPath);
     }
 }