Exemple #1
0
        public void ExecuteSetTest()
        {
            //Title
            SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);

            //Initial
            SeleniumSetMethods.EnterText("Initial", "Execute Automation", PropertyType.Name);

            //Click
            SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
Exemple #2
0
        public void ExecuteGetTest()
        {
            //Set Title
            SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);

            //Set Initial
            SeleniumSetMethods.EnterText("Initial", "Execute Automation", PropertyType.Name);

            //Get Title
            Console.WriteLine("The value from my Title is: " +
                              SeleniumGetMethods.GetTextFromDropDownList("TitleId", PropertyType.Id));

            //Get Initial
            Console.WriteLine("The value from my Initial is: " +
                              SeleniumGetMethods.GetText("Initial", PropertyType.Name));
        }