Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 2 KB

File metadata and controls

23 lines (20 loc) · 2 KB

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

Download a resource based on the given OpenQA.Selenium.IWebElement.

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

Parameters

element OpenQA.Selenium.IWebElement
The OpenQA.Selenium.IWebElement to use when downloading a resource.

path System.String
The path on which the resource will be saved.

attribute System.String
The element attribute from which to extract resource URL (if needed).

Returns

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