OpenQA.Selenium.UploadTest.ShouldAllowFileUploading C# (CSharp) Méthode

ShouldAllowFileUploading() private méthode

private ShouldAllowFileUploading ( ) : void
Résultat void
        public void ShouldAllowFileUploading()
        {
            driver.Url = uploadPage;
            driver.FindElement(By.Id("upload")).SendKeys(testFile.FullName);
            driver.FindElement(By.Id("go")).Submit();

            driver.SwitchTo().Frame("upload_target");

            IWebElement body = driver.FindElement(By.XPath("//body"));
            Assert.IsTrue(LoremIpsumText == body.Text, "Page source is: " + driver.PageSource);
        }