Beispiel #1
0
        public void UploadFileInAjaxUploader()
        {
            VaftLog.Info("File Path: " + _filePath);

            _fileUploadAjaxPage = new FileUploadAjaxPage(Driver);
            _fileUploadAjaxPage.NavigateToFileUploadAjaxPage();
            _fileUploadAjaxPage.GetUploadFileElement().AdvancedAction().UploadFile(_filePath);
            _fileUploadAjaxPage.WaitUntilTextIsDisplayed("TestUpload.jpeg");
        }
Beispiel #2
0
        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");
        }