public void ExecuteTest() { ExcelLib.PopulateInCollection(@"U:\Data.xlsx"); //Login to App LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); pageEA.FillUserForm(ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName"), ExcelLib.ReadData(1, "MiddleName")); //page.txtInitial.SendKeys("executeautomation"); //page.btnSave.Click(); //Title //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); //SeleniumSetMethods.EnterText("Initial", "executeautomation", PropertyType.Name); //Console.WriteLine("The value from my title is: " + SeleniumGetMethods.GetTextFromDDL("TitleId", PropertyType.Id)); //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name)); //SeleniumSetMethods.Click("Save", PropertyType.Name); }
public void ExecuteTest() { //Login to Application LoginPageObject pageLogin = new LoginPageObject(); EAPageObjects pageEA = pageLogin.Login("execute", "automation"); pageEA.FillUserForm("T", "Torres", "Arcy"); }
public void ExecuateTest() { //intialize the excel sheet ExcelLib.PopulateInCollection(@"C:\Users\Qian.Zhou\Documents\DataSelenium.xlsx"); //login to application LoginPageObject pageLogin = new LoginPageObject(); //EAPageObject pageEA= pageLogin.Login("bunny","guessmypassword"); EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); //pageEA.TextInitial.SendKeys("Test page navigation"); //pageEA.TextFirstName.SendKeys("Bunny"); //pageEA.TextMiddleName.SendKeys("Smith"); //pageEA.ButtonSave.Click(); //call the user fill form operation from the EAPageObject //pageEA.UserFormFill("test", "Bunny", "Smith"); pageEA.UserFormFill(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "FirstName"), ExcelLib.ReadData(1, "MiddleName")); }
public void ExecuteTest() { // Login to application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login("Execute", "automation"); pageEA.FillUserForm("Initial", "FirstName", "MidleName"); //// Title drop down //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); //// Initial text box //SeleniumSetMethods.EnterTextInTextBox("Initial", "executeautomation", PropertyType.Name); //Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDDL("TitleId", PropertyType.Id)); //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name)); //// Click Save button //SeleniumSetMethods.Click("Save", PropertyType.Name); }
public void ExecuteTest() { //Login to Application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA= pageLogin.Login("execute", "automation"); Console.WriteLine("Successfully logged"); pageEA.FillUserForm("KK", "Karthik", "Automation"); Console.WriteLine("Entered initial, first and middle name"); ////Initialize the page by calling its reference //EAPageObject page = new EAPageObject(); //page.txtInitial.SendKeys("Opolska"); //page.btnSave.Click(); // //Title // SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); // Console.WriteLine("Selected Title"); // //Initial // SeleniumSetMethods.EnterText("Initial", "Opolska", PropertyType.Name); // Console.WriteLine("Entered Initial"); // //Select Radiobutton // SeleniumSetMethods.Click("Female", PropertyType.Name); // Console.WriteLine("Selected radio button"); // 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); // Console.WriteLine("Clicked Save"); }