Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.5 KB

File metadata and controls

19 lines (17 loc) · 1.5 KB

WebElementExtensions.UploadFile(OpenQA.Selenium.IWebElement, string) Method

Allows to set input of file type element with file to upload (bypass all native windows).

public static OpenQA.Selenium.IWebElement UploadFile(this OpenQA.Selenium.IWebElement element, string path);

Parameters

element OpenQA.Selenium.IWebElement
This OpenQA.Selenium.IWebElement instance.

path System.String
The file to upload.

Returns

OpenQA.Selenium.IWebElement
A self-reference to this OpenQA.Selenium.IWebElement.