public void WhenIPressSubmit()
        {
            FileUploadPage FileUploadPage = new FileUploadPage(webDriver);

            FileUploadPage.ClickUploadLink();
            Thread.Sleep(1000);
        }
コード例 #2
0
        public void GivenIuploadAProviderFile()
        {
            FileUploadPage FileUploadPage = new FileUploadPage(webDriver);

            FileUploadPage.SelectProviderFile();
            FileUploadPage.SelectProviderFromDropdown();
        }
        public void GivenIUploadEmployerFile()
        {
            FileUploadPage FileUploadPage = new FileUploadPage(webDriver);

            FileUploadPage.SelectEmployerFile();
            FileUploadPage.SelectEmployerFromDropdown();
            Thread.Sleep(3000);
        }
コード例 #4
0
        private void btn_OnlineUpload_Click(object sender, EventArgs e)
        {
            FileUploadPage f_up = new FileUploadPage(this);

            // Hide the main form
            this.Hide();
            // Show the Device Page as a dialog
            f_up.ShowDialog();
        }
コード例 #5
0
        public void Exercise_File_Upload_Test()
        {
            var internetPage = new InternetPage(this.DriverContext);

            internetPage.OpenHomePage();
            internetPage.GoToPage("upload");
            var fileUpload = new FileUploadPage(this.DriverContext);

            Verify.That(
                this.DriverContext,
                () => Assert.AreEqual("File Uploader", fileUpload.GetHeader()));
            fileUpload.UploadFile("file-uploaded.txt");
        }
コード例 #6
0
        public void Test002_UploadFileOver12MB()
        {
            Trace.WriteLine(BasePage.RunningTestKeyWord + "'Upload file over 12 MB'");

            var fileUploadPage = new FileUploadPage(_driver);

            fileUploadPage.OpenUsingControlPanel(_baseUrl);

            fileUploadPage.UploadFile(_largeFileToUpload, _folderName);

            var adminFileManagementPage = new AdminFileManagementPage(_driver);

            adminFileManagementPage.OpenUsingButtons(_baseUrl);
            adminFileManagementPage.SearchForFile(_largeFileToUpload);

            Assert.IsFalse(
                adminFileManagementPage.ElementPresent(
                    By.XPath("//div[contains(@id, 'dnnModuleDigitalAssetsListViewItem')]/span/font[text() = '" + _largeFileToUpload +
                             "']")));
        }
コード例 #7
0
        public void GivenIHaveClearedDownTheProviderTableFirst()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.ClearProviderTable();
        }
コード例 #8
0
        public void ThenTheDatabaseShouldHaveANewProvider()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.VerifyNewProviderCreated();
        }
コード例 #9
0
 public void SetUp()
 {
     _mainPage       = new MainPage(Driver).GoToMainPage();
     _fileUploadPage = _mainPage.GoToFileUploadPage();
 }
コード例 #10
0
        public void GivenISelectFromTheDropdown(string p0)
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.SelectFromDropdown(p0);
        }
コード例 #11
0
        public void ThenIShouldSeeAnErrorForNoFileSelected()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.NoFileSelectedErrMsgCheck();
        }
        public void ThenTheScreenShouldDisplayFileSuccessfullyUploadedMessage()
        {
            FileUploadPage FileUploadPage = new FileUploadPage(webDriver);

            FileUploadPage.VerifyUploadSuccessMessage();
        }
コード例 #13
0
        public void GivenISelectAWordDocument()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.SelectWordDocument();
        }
コード例 #14
0
        public void WhenIPressUpload()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.ClickUploadLink();
        }
コード例 #15
0
        public void ThenIShouldSeeAnErrorForInvalidFileSelected()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.WrongFiletypeErrMsgCheck();
        }
コード例 #16
0
        public App()
        {
            InitializeComponent();

            MainPage = new FileUploadPage();
        }
コード例 #17
0
        public void GivenISelectAJPEGImage()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.SelectJPEGImage();
        }
コード例 #18
0
 public NewPage(FileUploadPage fileUploadPage)
 {
     this.fileUploadPage = fileUploadPage;
 }
コード例 #19
0
        public void GivenISelectProviderFromTheDropdown()
        {
            FileUploadPage fileUploadPage = new FileUploadPage(webDriver);

            fileUploadPage.SelectProviderFromDropdown();
        }