Esempio n. 1
0
        public static void EnableFileForEditing(string filePath)
        {
            WaitHelpers.ExplicitWait();
            ExcelPackage.LicenseContext = LicenseContext.NonCommercial;

            var xlWorkbook = new ExcelPackage(new FileInfo(filePath));

            var workSheet = xlWorkbook.Workbook.Worksheets[0];

            workSheet.Protection.IsProtected = true;
            xlWorkbook.Save();
        }
Esempio n. 2
0
 public static void GoTo(string url)
 {
     WebDriver.Navigate().GoToUrl(url);
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }
Esempio n. 3
0
 public static void RefreshPage()
 {
     WebDriver.Navigate().Refresh();
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }