Exemplo n.º 1
0
        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.");
        }
Exemplo n.º 2
0
        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.");
        }