Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

upload a file selenium c#

// Easiest and most reliable way is via .SendKeys
driver.FindElement(By.Id("ElementID")).SendKeys("FilePathFileName.type");
 
PREVIOUS NEXT
Tagged: #upload #file #selenium
ADD COMMENT
Topic
Name
7+3 =