public void customMethod()
 {
     try
     {
         Datalist.NavigateDataListDriver(webDriver); // add sleep and another mehotd to see if this approach works
         System.Threading.Thread.Sleep(5000);
     } finally {
         webDriver.Quit();
     }
 }
示例#2
0
        public void DataListTest()
        {
            try
            {
                Datalist dataList = new Datalist(webDriver, test);
                System.Threading.Thread.Sleep(5000);

                Assert.IsFalse(webDriver.FindElement(Datalist.hideousButton).Displayed); // it's working
            } finally {
                webDriver.Quit();
            }
        }