Exemple #1
0
        public void IndividualDetails()
        {
            /*Individual details*/
            SetMethods.ImplicitlyWait(10);
            PersalNum.EnterText("061375468");
            TitleArrow.Clicks();
            Thread.Sleep(500);
            Mr.Clicks();
            Surname.EnterText("Tailor");
            Initial.EnterText("D");
            IDNum.EnterText("8710039822081");
            OutSide.Clicks();
            Thread.Sleep(1500);
            Age.EnterText("32");
            Thread.Sleep(1000);
            GenderArrow.Clicks();
            Thread.Sleep(500);
            Male.Clicks();

            /*PersalNum.SendKeys("061375468");
             * TitleArrow.Click();
             * Thread.Sleep(500);
             * Mr.Click();
             * Surname.SendKeys("Tailor");
             * Initial.SendKeys("JH");
             * IDNum.SendKeys("8710039822081");
             * OutSide.Click();
             * Age.SendKeys("32");
             * GenderArrow.Click();
             * Thread.Sleep(500);
             * Male.Click();*/
        }
Exemple #2
0
        private void CreateObject()
        {
            livingRoom = new RoomWithDoor("Living Room", "an antique carpet",
                                          "an oak door with a brass handle");
            diningRoom = new Room("Dinning room", "a crystal chandelier");
            kitchen    = new RoomWithDoor("Kitchen", "stainless steel appliances", "a screen door");

            //stairs = new Room("Stairs", "a wooden bannister");
            //hallway = new RoomWithHidingPlace("Upstairs Hallway", "a picture of a dog",
            //          "in the closet");
            //bathroom = new RoomWithHidingPlace("Bathroom", "a sink and a toilet",
            //          "in the shower");
            //masterBedroom = new RoomWithHidingPlace("Master Bedroom", "a large bed",
            //          "under the bed");
            //secondBedroom = new RoomWithHidingPlace("Second Bedroom", "a small bed",
            //          "under the bed");

            frontYard = new OutsideWithDoor("Front Yard", false, "a heavy-looking oak door");
            backYard  = new OutsideWithDoor("Back Yard", true, "a screen door");
            garden    = new OutSide("Garden", false);
            // driveway = new Outside("Driveway", true);

            diningRoom.Exits = new Location[] { livingRoom, kitchen };
            livingRoom.Exits = new Location[] { diningRoom };
            kitchen.Exits    = new Location[] { diningRoom };
            //stairs.Exits = new Location[] { livingRoom, hallway };
            //hallway.Exits = new Location[] { stairs, bathroom, masterBedroom, secondBedroom };
            //bathroom.Exits = new Location[] { hallway };
            //masterBedroom.Exits = new Location[] { hallway };
            //secondBedroom.Exits = new Location[] { hallway };
            frontYard.Exits = new Location[] { backYard, garden };
            backYard.Exits  = new Location[] { frontYard, garden };
            garden.Exits    = new Location[] { backYard, frontYard };
            //driveway.Exits = new Location[] { backYard, frontYard };

            livingRoom.DoorLocation = frontYard;
            frontYard.DoorLocation  = livingRoom;

            kitchen.DoorLocation  = backYard;
            backYard.DoorLocation = kitchen;
        }
Exemple #3
0
        public void ClaimDetails()
        {
            SetMethods.ImplicitlyWait(10);
            JTTitle.EnterText("ABCDEFGHIJKLMNOP");
            JobTitleDes.EnterText("Test Automation Engineer");
            Qualification.EnterText("ISTQB");
            DateAppointed.EnterText("03-06-2019");
            OutSide.Clicks();
            Salary.EnterText("123456");
            //SalaryLevelArrow.Clicks();
            SalaryLevelvalue.EnterText("5");
            OutSide.Clicks();

            /*//Look at the output for i-Frames count
             * SetMethods.HowmanyIFrames();
             *
             * PropertiesCollection.driver.SwitchTo().Frame(0);*/
            //SalaryLevelvalue.Clicks();

            /*//Switch back to your parent frame
             * PropertiesCollection.driver.SwitchTo().DefaultContent();
             * //PropertiesCollection.driver.SwitchTo().ParentFrame();*/

            UniqueCaseNo.EnterText("AB015OH03");
            CaseType.EnterText("Short Period");
            OutSide.Clicks();
            CaseOrigin.EnterText("New");
            OutSide.Clicks();
            LeaveCycle.EnterText("2019-2021");
            OutSide.Clicks();
            IncidentStartDate.EnterText("11-03-2020");
            OutSide.Clicks();
            IncidentEndDate.EnterText("15-03-2020");
            OutSide.Clicks();

            //Scrolling down the page
            SetMethods.ScrollById("DD22D8EF4EF14AA1ACC97772D3D130D7-bodyEl");

            EmployeeSignedDate.EnterText("16-03-2020");
            MedCertificateBrowse.Clicks();
            Thread.Sleep(1500);

            //AutoIT
            SetMethods.AutoITUpload("Open", "C:\\Users\\TailorJ\\Downloads\\Fake ID.pdf");
            Thread.Sleep(1000);
            MedCertificateUpload.Clicks();
            Thread.Sleep(1000);

            //Alert handeling - enter either Accept or Cancel
            SetMethods.Alert("Accept");

            Thread.Sleep(15000);
            /*SetMethods.WaitAlertState(60, true);*/

            //Alert handeling - enter either Accept or Cancel
            /*SetMethods.Alert("Accept");*/

            //Need to write a method for Action class in SetMethods
            Actions builder = new Actions(Configuration.PropertiesCollection.driver);

            builder.SendKeys(Keys.Enter);

            Disclaimer.Clicks();
            Status.EnterText("Save as Draft");
            Update.Clicks();
            Thread.Sleep(1000);
            SetMethods.SwitchtoAnotherWindow("Parent");
            //SetMethods.SwitchtoParentWindow();
            Thread.Sleep(1000);
            Search.Clicks();
            Start.Clicks();
            Thread.Sleep(2000);
            Search_Refresh.Clicks();
            SetMethods.ScrollById("frmHMSTILsubmissionListing-lblFormCode");
        }