MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / CleanFileInput

Method CleanFileInput

dotnet/test/webdriver/UploadTests.cs:64–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 [Test]
65 public void CleanFileInput()
66 {
67 Driver.Url = Urls.UploadPage;
68 IWebElement element = Driver.FindElement(By.Id("upload"));
69 element.SendKeys(testFile.FullName);
70 element.Clear();
71 Assert.That(element.GetAttribute("value"), Is.Empty);
72 }
73
74 [Test]
75 public void ClickFileInput()

Callers

nothing calls this directly

Calls 5

IdMethod · 0.80
FindElementMethod · 0.45
SendKeysMethod · 0.45
ClearMethod · 0.45
GetAttributeMethod · 0.45

Tested by

no test coverage detected