public void ExecuteTest() { ExcelLib.PopulateInCollection(@"c:\Users\vagunda\Documents\testDataDrivenSelen.xlsx"); //login to application LoginPageObject pageLogin = new LoginPageObject(); //inputs bez excell file EAPageObject pageEA = pageLogin.Login("execute", "automation"); pageEA.FillUserForm("KK", "Kartik", "Automation"); //inputs from excel file //EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); //pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); //Initialize page //EAPageObject pageEA = new EAPageObject(); }
public void ExecuteTest() { ExcelLib.PopulateInCollection(@"D:\data.xlsx"); LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); pageEA.fillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); //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() { ExcelLib.PopulateInCollection(@"C:\Users\bdavis2\Documents\FormAutomation.xlsx"); //Login to Application LoginPageObject pageLogin = new LoginPageObject(); EAPageObjects pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); //Fill form pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "FirstName"), ExcelLib.ReadData(1, "MiddleName")); }
public void ExecuteTest() { ExcelLib.PopulateInCollection(@"/Users/jennypichardo/Desktop/Data.xlsx"); // Login to Application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); }
public void ExecuteTest() { ExcelLib.PopulateInCollection(@"E:\Data.xlsx"); LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); ////Login //LoginPageObject pageLogin = new LoginPageObject(); //EAPageObject pageEA = pageLogin.Login("Bipin", "Osti"); //pageEA.FillUserForm("Hello", "Bipin", "Osti"); ////dropdown //SeleniumSetMethod.SelectDropdown("TitleId", "Mr.", PropertyType.Id); ////Initial name //SeleniumSetMethod.EnterText("Initial", "Hello", PropertyType.Name); //Console.WriteLine("The value i entered is : " + SeleniumGetMethod.GetTextFromDDL ( "TitleId", PropertyType.Id)); //Console.WriteLine("The value i entered for initial is : " + SeleniumGetMethod.GetText( "Initial", PropertyType.Name)); ////click operation //SeleniumSetMethod.Click("Save", PropertyType.Name); //SeleniumSetMethod.Click("Hindi", PropertyType.Name); }
public void execTest() { ExcelLib.PopulateInCollection(@"C:\Users\Hoon\Documents\Hoon\Selenium\data.xlsx"); //Login to application LoginPageObject pageLogin = new LoginPageObject(); int iRow = 2; EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(iRow, "UserName"), ExcelLib.ReadData(iRow, "Password")); pageEA.FillUserForm(ExcelLib.ReadData(iRow, "Initial"), ExcelLib.ReadData(iRow, "MiddleName"), ExcelLib.ReadData(iRow, "FirstName")); //// Initialize the pabe by calling its reference //EAPageObject page = new EAPageObject(); //page.txtInitial.SendKeys("test automation"); //page.btnSave.Click(); Console.WriteLine("execTest"); LogWriter.LogWrt("execTest"); }
[Test] // needed to run the test public void ExecuteTest() { //open spreadsheet for test data ExcelLib.PopulateInCollection(@"C:\Users\yvon\dev\SeleniumAutomation\Data.xlsx"); //Login to Application and instantiate EAPageObject LoginPageObject pageLogin = new LoginPageObject(); //EAPageObjects pageEA = pageLogin.Login("Yvon", "EA9817"); EAPageObjects pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); ////Title //SeleniumSetMethods.SelectDropDown("TitleId","Ms.", How.Id); ////Initial //SeleniumSetMethods.EnterText("Initial","EJN" ,How.Name); //Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDDl("TitleId", How.Id)); //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", How.Name)); ////Click //SeleniumSetMethods.Click("Save", How.Name); }
public void ExecuteTest() { ExcelLib.PopulateInCollection(@"F:\Projects\CDC\Tester\Data.xlsx"); //Login to Application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); //Fill User Details pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); }