Exemple #1
0
        public void FillUserForm(string intial, string firstname, string middlename)
        {
            SeleniumSetMethods.EnterText(txtInitial, intial);
            SeleniumSetMethods.EnterText(txtFirstName, firstname);
            SeleniumSetMethods.EnterText(txtMiddleName, middlename);
            SeleniumSetMethods.Click(btnSave);


            //txtInitial.SendKeys(intial);
            //txtFirstName.SendKeys(firstname);
            //txtMiddleName.SendKeys(middlename);
            //btnSave.Click();
        }
Exemple #2
0
        public void ExecuteTest()
        {
            // Title
            SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);

            //Intial
            SeleniumSetMethods.EnterText("Initial", "executeautomation", PropertyType.Name);

            Console.WriteLine("The value from my Title is: ", SeleniumGetMethods.GetText("TitleId", PropertyType.Id));
            Console.WriteLine("The value from my Initial is:", SeleniumGetMethods.GetText("Initial", PropertyType.Name));

            // Click
            SeleniumSetMethods.Click("Save", PropertyType.Name);
        }