public void ExecuteTest() { ExcelLib.PopulateInCollection(@"/Users/vanle/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")); //Initialized the page by calling references //EAPageObject page = new EAPageObject(); //page.txtInitial.SendKeys("executeautomation"); //page.btnSave.Click(); ////Title //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); ////Initials //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); }
public void Operation() { //Login to Application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login("Excute", "Auto"); // EAPageObject pageEA = new EAPageObject(); pageEA.FillUserform("hi", "Selenium", "automation"); //Initialize the page by calling its reference EAPageObject page = new EAPageObject(); page.txtInitial.SendKeys("Execute"); page.btnSave.Click(); ////IWebElement e = Propcollections.driver.FindElement(By.Name("q")); ////e.SendKeys("hi"); //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); //SeleniumSetMethods.Entertext("Initial", "Execute", PropertyType.Name); //Console.WriteLine("The value of title is " + SeleniumGetMethods.GetTextselect("TitleId", PropertyType.Id)); //Console.WriteLine("Name " + SeleniumGetMethods.GetText("Initial", PropertyType.Name)); //SeleniumSetMethods.Click("Save", PropertyType.Name); }
public void ExecuteTest() { // Login to Applciation LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login("execute", "automation"); pageEA.FillUserForm("MP", "Manny", "Automation"); // Initialize the Page by calling its Reference EAPageObject page = new EAPageObject(); page.txtInitial.SendKeys("executeautomation"); page.btnSave.Click(); // // Title // SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); // // Initial // SeleniumSetMethods.EnterText("Initial", "executeautomation", PropertyType.Name); // System.Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetText("TitleId", PropertyType.Id)); // System.Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("TitleId", PropertyType.Name)); // //Click // SeleniumSetMethods.Click("Save", PropertyType.Name); }
public void ExecuteTest() { ExelLib.PopulateInCollection(@"C:\Users\Marko\Desktop\Excel.xlsx"); //Login to App LoginPageObject loginPage = new LoginPageObject(); EAPageObject pageEa = loginPage.Login(ExelLib.ReadData(1, "UserName"), ExelLib.ReadData(1, "Password")); pageEa.FillUserForm(ExelLib.ReadData(1, "Initial"), ExelLib.ReadData(1, "MiddelName"), ExelLib.ReadData(1, "FisrtName")); //Inicialez the page by calling refernce //EAPageObject page = new EAPageObject(); //page.txtInitial.SendKeys("executeautomation"); //page.btnSave.Click(); ////Titel //SeleniumSetMethod.SelectDropDown("TitleId", "Mr.", PropertyType.Id); ////Initcial //SeleniumSetMethod.EnterText("Initial", "executeautomation",PropertyType.Name); //Console.WriteLine("The value from my Title is:" + SeleniumGetMethod.GetText("TitleId",PropertyType.Id)); //Console.WriteLine("The value my Initial is: " + SeleniumGetMethod.GetText("Initial", PropertyType.Name)); ////Click //SeleniumSetMethod.Click("Save", PropertyType.Name); }
public void ExecuteTest() { // //select the title by calling the SelectDropDown method in SeleniumSetMethods class // SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); // Console.WriteLine("Executed Test"); // //select the Initial from the Text Box // SeleniumSetMethods.EnterText("Initial", "executeautomation", PropertyType.Name); // Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDropDownList("TitleId", PropertyType.Id)); // Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name)); // //click // SeleniumSetMethods.Click("Save", PropertyType.Name); //login to application by creating an instance for the LoginPageObject. LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login("Anuradha", "Sengalvarayan"); pageEA.FillUserForm("SA", "Anu", "Senthil"); Console.WriteLine("Executed LoginPage Object and returned EAPageObject"); //pageEA.txtInitial.SendKeys("executeautomation"); //pageEA.btnSave.Click(); }
public void ExecuteTest() { //Login to application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login("Mateusz", "Zarczynski"); pageEA.FillUserForm("M.Ż", "Mateusz", "Żarczyński"); // initialize the page by calling its reference //EAPageObject page = new EAPageObject(); //page.txtInitial.SendKeys("Mateusz.Ż"); //Console.WriteLine("Wprowadzan Inicjał"); //page.btnSave.Click(); //Console.WriteLine("Kilkam Save"); ////Title //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); //// Initial //SeleniumSetMethods.EnterText("Initial", "M.Ż", 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); }
public void ExecuteTest() { var pathToExcel = @"C:\Users\monika.lyzwa.SILVERMEDIA\Documents\Visual Studio 2015\Projects\data.xlsx"; var exists = File.Exists(pathToExcel); Assert.True(exists); ExcelLib.PopulateInCollection(pathToExcel); //Login to application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageAE = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password")); pageAE.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName")); //Title //SeleniumSetMethods.SelectDropDown( "TitleId", "Mr.", PropertyType.Id); //Initial //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", "Name", PropertyType.Name); }
public void ExecuteTest() { //Login to App LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login("Execute", "Automation"); pageEA.FillUserForm("ZI", "Mr.", "Zeljko", "Adama"); ////Title //SeleniumSetMethods.SelectDropDown("TitleId", "Ms.", "Id"); ////Initial //SeleniumSetMethods.EnterText("Initial", "Zeljko SvastaPiseBukvalno", "Name"); //Console.WriteLine("The value from input Title is : " + SeleniumGetMethods.GetTextFromDDL("TitleId", "Id")); //Console.WriteLine("The value from input Initial is : " + SeleniumGetMethods.GetText("Initial", "Name")); ////First name //SeleniumSetMethods.EnterText("FirstName", "Zeljko", "Name"); ////Middle Name //SeleniumSetMethods.EnterText("MiddleName", "Ilic","Name"); ////Gender //SeleniumSetMethods.Click("Female", "Name"); ////Languages //SeleniumSetMethods.Click("Hindi", "Name"); ////Save //SeleniumSetMethods.Click("Save", "Name"); }
public void ExecuteTest() { //Create a instance of LoginPageObject LoginPageObject pageLogin = new LoginPageObject(); //Login to Application and return a EAPageObject EAPageObject pageEA = pageLogin.Login("execute", "automation"); //Fill User Details pageEA.FillUserForm("JP", "Juan Pablo", "Abad"); /* * Second way * //Initialize the page by calling its reference * * EAPageObject page = new EAPageObject(); * page.InputFirstName.SendKeys("juanp"); * page.btnSubmit.Click(); */ /* * Firstway * SeleniumSetMethods.EnterText("firstname", "juan", Propertytype.Name); * SeleniumSetMethods.EnterText("lastname", "abad", Propertytype.Name); * SeleniumSetMethods.SelectDropDown("continents", "Europe", Propertytype.Id); * * Console.WriteLine("The value from my name is: " + SeleniumGetMethods.GetText("firstname", Propertytype.Name)); * Console.WriteLine("The value from my last name is: " + SeleniumGetMethods.GetText("lastname", Propertytype.Name)); * Console.WriteLine("The value from the continent is: " + SeleniumGetMethods.GetTextFromDDL("continents", Propertytype.Id)); * * SeleniumSetMethods.Click("submit", Propertytype.Id); */ }
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"); }
public void ExecuteTest() { // Login to application LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEa = pageLogin.Login("execute", "automation"); pageEa.FillUserForm("W.", "Rebecca", "A."); //// Initialize the page by calling its reference //EAPageObject page = new EAPageObject(); //page.InitialElement.SendKeys("W."); //page.FirstNameElement.SendKeys("Rebecca"); //page.MiddleNameElement.SendKeys("A."); //page.ButtonSaveElement.Click(); //// TitleId //SeleniumSetMethods.SelectDropDown(PropertyType.Id, "TitleId", "Mr."); //// Initial //SeleniumSetMethods.EnterText(PropertyType.Name, "Initial", "execute automation"); //// Get the title value //Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDropdownList(PropertyType.Id, "TitleId")); //// Get the initial value //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText(PropertyType.Name, "Initial")); //// Click //SeleniumSetMethods.ClickElement(PropertyType.Name, "Save"); }
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 ExecuteTest() { ExcelLib.PopulateInCollection(@"C:\Surekha\Data.xlsx"); //Login to the 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")); Console.WriteLine("Executed Test"); ////Title //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); ////Initial //SeleniumSetMethods.EnterText("Initial", "executeautomation", PropertyType.Name); ////Click //SeleniumSetMethods.Click("Save", PropertyType.Name); //Console.WriteLine("The value from Title is: " + SeleniumGetMethods.GetTextFromDDL("TitleId", PropertyType.Id)); //Console.WriteLine("The value from Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name)); }
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(@"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")); }
public void ExicuteTest() { EAPageObject page = new EAPageObject(); page.TxtInitial.SendKeys("executeautomation"); page.BtnSave.Click(); ////EnterText(element, value, type) //SeleniumSetMethods.SelectDropDown( "TitleId", "Mr.", PropertyType.Id); //SeleniumSetMethods.EnterText( "Initial", "executeautomation", PropertyType.Name); //Console.WriteLine("Value from title is: " + SeleniumGetMethods.GetTextFromDDL( "TitleId", "", PropertyType.Id)); //SeleniumSetMethods.click( "Save", PropertyType.Name); //// //find element //// IWebElement element = driver.FindElement(By.Name("q")); //// //perform ops //// element.SendKeys("exicute automation"); ////Console.WriteLine("testc exicuted"); }
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() { ExcelLibrary.PopulateInCollection(@"C:\Data.xlsx"); LoginPageObject pageLogin = new LoginPageObject(); EAPageObject pageEA = pageLogin.Login(ExcelLibrary.ReadData(1, "UserName"), ExcelLibrary.ReadData(1, "Password")); pageEA.FillUserForm(ExcelLibrary.ReadData(1, "Initial"), ExcelLibrary.ReadData(1, "MiddleName"), ExcelLibrary.ReadData(1, "FirstName")); //EAPageObject pageEA = pageLogin.Login("Oktav", "Selenium"); //pageEA.FillUserForm("OS", "Oktav", "Selenium"); //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", propertyType.Id); //SeleniumSetMethods.EnterText("Initial", "Oktav", 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)); //SeleniumSetMethods.Click("Save", propertyType.Name); }
public void ExecuteTest() { //Login to Application LoginPageObject loginPageObject = new LoginPageObject(); EAPageObject eAPageObject = loginPageObject.Login("execute", "automation"); eAPageObject.FillUserForm("KK", "Karthik", "Automation"); ////Title //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id); ////Initial //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)); ////Click //SeleniumSetMethods.Click("Save", PropertyType.Name); }
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"); }