Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 2.53 KB

File metadata and controls

23 lines (20 loc) · 2.53 KB

WebDriverExtensions.SendPostCommand(OpenQA.Selenium.IWebDriver, string, System.Collections.Generic.IDictionary<string,object>) Method

Sends POST command directly to this OpenQA.Selenium.IWebDriver instance.

public static string SendPostCommand(this OpenQA.Selenium.IWebDriver driver, string route, System.Collections.Generic.IDictionary<string,object> data);

Parameters

driver OpenQA.Selenium.IWebDriver
This OpenQA.Selenium.IWebDriver instance.

route System.String
Command route starting with "/" (use the complete route which comes after session id).

data System.Collections.Generic.IDictionary<System.String,System.Object>
Post data to send (parameters list).

Returns

System.String
Command response as JSON (if available).