internal void UploadExcelFile(string fileToUpload) { Console.WriteLine(System.IO.Directory.GetCurrentDirectory()); FileUpload.SendKeys(System.IO.Directory.GetCurrentDirectory() + @"\" + fileToUpload); UploadButton.Submit(); // UploadButton.Click(); // webDriver.WaitGetAlert(CatalogTimeOuts.AlertTimeOut); // webDriver.SwitchTo().Alert().Accept(); //// webDriver.WaitForPageLoad(TimeSpan.FromSeconds(10)); }
public void UploadExcelFile(string fileToUpload) { Console.WriteLine(System.IO.Directory.GetCurrentDirectory()); FileUpload.SendKeys(System.IO.Directory.GetCurrentDirectory() + @"\" + fileToUpload); UploadButton.Submit(); }