Пример #1
0
        public void SearchTestExcel()
        {
            ExcelLib.PopulateInCollection(@"Test.xlsx");

            // Initialize the page by calling its reference
            SearchPagePO page = new SearchPagePO();
            page.Search(ExcelLib.ReadData(1, "SearchText"));

        }
Пример #2
0
        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");

        }
Пример #3
0
        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();
            }

        }