public void SearchTestExcel() { ExcelLib.PopulateInCollection(@"Test.xlsx"); // Initialize the page by calling its reference SearchPagePO page = new SearchPagePO(); page.Search(ExcelLib.ReadData(1, "SearchText")); }
public void SearchTest() { // Initialize the page by calling its reference SearchPagePO page = new SearchPagePO(); // page.SearchFieldId.SendKeys("Testing search page"); // page.SearchBtnName.Click(); page.Search("Testing search page"); }
public void SearchTestExcelCicle() { ExcelLib.PopulateInCollection(@"Test.xlsx"); // Initialize the page by calling its reference for (int i = 1; i <= 3; i++) { PropertiesCollection.Driver.Close(); PropertiesCollection.Driver = new FirefoxDriver(); PropertiesCollection.Driver.Navigate().GoToUrl("https://www.google.com.ua"); SearchPagePO page = new SearchPagePO(); page.Search(ExcelLib.ReadData(i, "SearchText")); PropertiesCollection.Driver.Close(); } }