public void UploadFileInAjaxUploader() { VaftLog.Info("File Path: " + _filePath); _fileUploadAjaxPage = new FileUploadAjaxPage(Driver); _fileUploadAjaxPage.NavigateToFileUploadAjaxPage(); _fileUploadAjaxPage.GetUploadFileElement().AdvancedAction().UploadFile(_filePath); _fileUploadAjaxPage.WaitUntilTextIsDisplayed("TestUpload.jpeg"); }
public void UploadFileInAjaxUploader() { string filePath = Path.GetFullPath(@"Resources/TestUpload.jpeg"); VaftLog.Info("File Path: " + filePath); _fileUploadAjaxPage = new FileUploadAjaxPage(Driver); _fileUploadAjaxPage .NavigateToFileUploadAjaxPage(); _fileUploadAjaxPage.GetUploadFileElement().AdvancedAction().UploadFile(filePath); _fileUploadAjaxPage.WaitUntilTextIsDisplayed("TestUpload.jpeg"); }
public void UploadFileInFileUploadNet() { VaftLog.Info("File Path: " + _filePath); _fileUploadNetPage = new FileUploadNetPage(Driver); _fileUploadNetPage.NavigateToFileUploadNetPage(); _fileUploadNetPage.GetBrowseFileInputField().AdvancedAction().UploadFile(_filePath); _fileUploadNetPage.WaitUntilTextIsDisplayed("Your file has succesfully been stored!"); string downloadLink = Driver.FindElement(By.CssSelector("input[name=\"default\"]")).GetAttribute("value"); Driver.Navigate().GoToUrl(downloadLink); StringAssert.AreEqualIgnoringCase("TestUpload.jpeg", Driver.FindElement(By.XPath("//h1[@class='dateiname']")).Text); }
public void UploadFile() { VaftLog.Info("File Path: " + _filePath); _fileUploadPage = new FileUploadFileChuckerPage(Driver); _fileUploadPage.NavigateToFileUploadPage(); _fileUploadPage .EnterEmail("*****@*****.**") .EnterFirstName("Selenium"); _fileUploadPage.GetBrowseFileInputField().AdvancedAction().UploadFile(_filePath); _fileUploadPage.ClickBeginUploadBtn(); Thread.Sleep(5000); _fileUploadPage.WaitUntilTextIsDisplayed("uploaded successfully."); }
public void UploadFile() { string filePath = Path.GetFullPath(@"Resources/TestUpload.jpeg"); // string filePath = AppDomain.CurrentDomain.BaseDirectory + "/Resources/TestUpload.jpeg"; VaftLog.Info("File Path: " + filePath); _fileUploadPage = new FileUploadFileChuckerPage(Driver); _fileUploadPage.NavigateToFileUploadPage(); _fileUploadPage .EnterEmail("*****@*****.**") .EnterFirstName("Selenium"); _fileUploadPage.GetBrowseFileInputField().AdvancedAction().UploadFile(filePath); _fileUploadPage.ClickBeginUploadBtn(); Thread.Sleep(5000); _fileUploadPage.WaitUntilTextIsDisplayed("uploaded successfully."); }