Class RESTClient
Fluent REST client for making API calls with a chained interface.
Supports defining workflows, executing them in loops, and accessing results.
Results are accessed via a non-generic indexer, requiring casting to the desired type.
Inheritance
System.Object
RESTClient
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: GPAL.dll
Syntax
public class RESTClient : IRESTClient, IAllowRESTEndpoint, IAllowRESTEndpointDetails, IAllowRESTParametersOrExecution, IAllowRESTParameters, IAllowRESTMethod, IAllowRESTScript, IAllowRESTWorkflow, IAllowRESTWorkflowDefinition, IAllowCheckNetworkIdleOrExecution, IAllowRESTExecution, IAllowToGPALObject<RESTClient>
Examples
// First example: Looping with XPath and status checks
RESTClient client = GPAL.RESTClient
.WithAPIBase(GPAL.OttoMagicRestApiBaseUrl)
.WithName("LoopClient")
// Define first workflow: evaluate an XPath and store result as "item"
.WithWorkflow(c => c
.WithEndpoint(ApiEndpoint.Evaluate) // Maps to "/evaluate"
.WithXPath("//div[@class='item']") // XPath to evaluate
.WithResultName("item")
.Execute<string>()
)
// Define second workflow: check status and store result as "status"
.WithWorkflow(c => c
.WithEndpoint(ApiEndpoint.CheckStatus) // Maps to "/status"
.WithResultName("status")
.Execute<bool>()
)
// Execute both workflows in a loop until "item" matches "targetValue"
.While(() => (string)GetExecutionResults()["item"] != "targetValue")
// Continue with another operation: input text using the "item" result
.WithEndpoint(ApiEndpoint.InputText) // Maps to "/input-text"
.WithXPath("//input[@id='search']")
.WithTextFromResult("item")
.Execute();
var results = GetExecutionResults();
Console.WriteLine($"Last Item: [{(string)results["item"]}]");
Console.WriteLine($"Last Status: [{(bool)results["status"]}]");
Console.WriteLine($"Item from iteration 0: [{(string)results["item", 0]}]");
Console.WriteLine($"Status from iteration 0: [{(bool)results["status", 0]}]");
// Second example: Executing JavaScript and chaining result
RESTClient client = GPAL.RESTClient
.WithAPIBase(GPAL.OttoMagicRestApiBaseUrl)
.WithName("JavaScriptClient")
// Execute JavaScript to get the page title and store it as "pageTitle"
.WithEndpoint(ApiEndpoint.ExecuteJavaScript) // Maps to "/execute-javascript"
.WithParameters("return document.title", new object[] { }) // JavaScript code and arguments
.WithResultName("pageTitle")
.ExecuteAndChain<string>()
// Chain the result: use the page title in an input text operation
.WithEndpoint(ApiEndpoint.InputText) // Maps to "/input-text"
.WithXPath("//input[@id='search']")
.WithTextFromResult("pageTitle")
.Execute();
var results = GetExecutionResults();
Console.WriteLine($"Page Title: [{(string)results["pageTitle"]}]");
Console.WriteLine($"Page Title from iteration 0: [{(string)results["pageTitle", 0]}]");
Properties
Name
Declaration
public string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
Back()
Move back in browswer history for current tab
Declaration
public IAllowRESTExecution Back()
Returns
CheckNetworkIdle(Int32)
Emulate Playwrights network idle check, better than readystatus ensuring javascript/background network tasks are done on the page
Declaration
public IAllowRESTExecution CheckNetworkIdle(int maxConnections = 0)
Parameters
| Type |
Name |
Description |
| System.Int32 |
maxConnections |
|
Returns
CloseTab(Int32)
Declaration
public IAllowRESTExecution CloseTab(int tabId)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tabId |
|
Returns
CloseTab(String)
Declaration
public IAllowRESTExecution CloseTab(string URL = null)
Parameters
| Type |
Name |
Description |
| System.String |
URL |
|
Returns
Evaluate(String)
Evaluates an XPath selector to return a single element.
Declaration
public IAllowRESTExecution Evaluate(string xpath)
Parameters
| Type |
Name |
Description |
| System.String |
xpath |
The XPath selector (e.g., "//div[1]").
|
Returns
EvaluateAll(String)
Evaluates an XPath selector to return all matching elements.
Declaration
public IAllowRESTExecution EvaluateAll(string xpath)
Parameters
| Type |
Name |
Description |
| System.String |
xpath |
The XPath selector (e.g., "//p").
|
Returns
Execute()
Declaration
Returns
| Type |
Description |
| System.String |
|
Execute<T>()
Declaration
Returns
Type Parameters
ExecuteAndChain()
Declaration
public IAllowRESTParametersOrExecution ExecuteAndChain()
Returns
ExecuteAndChain<T>()
Declaration
public IAllowRESTParametersOrExecution ExecuteAndChain<T>()
Returns
Type Parameters
ExecuteAsync()
Declaration
public async Task<string> ExecuteAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.String> |
|
ExecuteAsync<T>()
Declaration
public async Task<T> ExecuteAsync<T>()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<T> |
|
Type Parameters
ExecuteCheckStatus()
Declaration
public bool ExecuteCheckStatus()
Returns
| Type |
Description |
| System.Boolean |
|
ExecuteCheckStatusAsync()
Declaration
public async Task<bool> ExecuteCheckStatusAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Boolean> |
|
ExecuteJavaScript(String)
Executes a JavaScript snippet in the browser.
Declaration
public IAllowRESTExecution ExecuteJavaScript(string script)
Parameters
| Type |
Name |
Description |
| System.String |
script |
The JavaScript code to execute (e.g., "alert('Test');").
|
Returns
ExecuteJavaScript(String, Object[])
Executes a JavaScript snippet in the browser.
Declaration
public IAllowRESTExecution ExecuteJavaScript(string script, params object[] args)
Parameters
| Type |
Name |
Description |
| System.String |
script |
The JavaScript code to execute (e.g., "alert('Test');").
|
| System.Object[] |
args |
|
Returns
Forward()
Move forward in browswer history for current tab
Declaration
public IAllowRESTExecution Forward()
Returns
FullScreen()
Sets the browser to full-screen mode.
Declaration
public IAllowRESTExecution FullScreen()
Returns
GetBrowserSettings()
Retrieves browser-specific settings.
Declaration
public IAllowRESTExecution GetBrowserSettings()
Returns
GetContentAndCss(String)
Return a string which is the content and css for the element defined by SelectorPath
If no SelectorPath is provided, it is the whole webpage.
THis is used by the Browser.PrintToPDF method to clone a page and then load another browser to print to pdf in headless or windowed mode.
Declaration
public IAllowRESTExecution GetContentAndCss(string SelectorPath)
Parameters
| Type |
Name |
Description |
| System.String |
SelectorPath |
css or xpath
|
Returns
GetCurrentUrl()
Declaration
public IAllowRESTExecution GetCurrentUrl()
Returns
GetExecutionResults()
Declaration
public ResultCollection GetExecutionResults()
Returns
| Type |
Description |
| ResultCollection |
|
GetGpalSettings()
Retrieves GPAL-specific settings.
Declaration
public IAllowRESTExecution GetGpalSettings()
Returns
GetReadyStatus()
Get the brownser document.readyState (is page ready and loaded)
Declaration
public IAllowRESTExecution GetReadyStatus()
Returns
GetSettings()
Retrieves general settings.
Declaration
public IAllowRESTExecution GetSettings()
Returns
GetShadowRoot(String)
Get shadow root of element found by Css selector
Declaration
public IAllowRESTExecution GetShadowRoot(string css)
Parameters
| Type |
Name |
Description |
| System.String |
css |
|
Returns
GetUserAgent()
Get the useragent string from the browser
Declaration
public IAllowRESTExecution GetUserAgent()
Returns
GetWorkflow()
Retrieves the current workflow settings.
Declaration
public IAllowRESTExecution GetWorkflow()
Returns
Goto(String)
Navigates the browser to a specified URL.
Declaration
public IAllowRESTExecution Goto(string url)
Parameters
| Type |
Name |
Description |
| System.String |
url |
The URL to navigate to (e.g., "https://example.com").
|
Returns
GotoTab(Int32)
Declaration
public IAllowRESTExecution GotoTab(int tabId)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tabId |
The ID of the tab to switch to.
|
Returns
GotoTab(String)
Switches to a tab by URL.
Declaration
public IAllowRESTExecution GotoTab(string url)
Parameters
| Type |
Name |
Description |
| System.String |
url |
The URL of the tab to switch to.
|
Returns
Hover(String)
Hovers over an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution Hover(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//button") or CSS (e.g., "#btn") selector.
|
Returns
InIFrame(String)
Switch to iframe to find elements, can be nested
Declaration
public IAllowRESTExecution InIFrame(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
|
Returns
InMainDom(String)
Go back to the main document dom to find elements
Declaration
public IAllowRESTExecution InMainDom(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
|
Returns
InputText(String)
Inputs text into an element, expecting prior .WithText() to set the text.
Declaration
public IAllowRESTExecution InputText(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//input") or CSS (e.g., ".field") selector.
|
Returns
InShadowDom(String)
Switch to shadowDom to find element.
NOTE: Can be xpath for top level, but if nested, nested shadowdom selectors must be css
Declaration
public IAllowRESTExecution InShadowDom(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
|
Returns
LeftClick(String)
Performs a left-click on an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution LeftClick(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//a") or CSS (e.g., "#link") selector.
|
Returns
LeftClickAndDownload(String)
Performs a left-click and initiates a download from an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution LeftClickAndDownload(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//img") or CSS (e.g., ".image-link") selector.
|
Returns
LeftDoubleClick(String)
Performs a left double-click on an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution LeftDoubleClick(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//span") or CSS (e.g., ".item") selector.
|
Returns
Maximize()
Maximizes the browser window.
Declaration
public IAllowRESTExecution Maximize()
Returns
Minimize()
Minimizes the browser window.
Declaration
public IAllowRESTExecution Minimize()
Returns
MoveTo(String)
Moves the cursor to an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution MoveTo(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//div") or CSS (e.g., ".target") selector.
|
Returns
NewTab(String)
Create a new tab in the browser
Declaration
public IAllowRESTExecution NewTab(string url = null)
Parameters
| Type |
Name |
Description |
| System.String |
url |
|
Returns
NextTab()
Switches to the next tab.
Declaration
public IAllowRESTExecution NextTab()
Returns
Normal()
Restore browser / exit from fullscreen mode
Declaration
public IAllowRESTExecution Normal()
Returns
OverrideReferrr(String)
Set google.com as the referrer in the browser, stealth operation
Declaration
public IAllowRESTExecution OverrideReferrr(string referrer)
Parameters
| Type |
Name |
Description |
| System.String |
referrer |
|
Returns
PageDown(Int32)
Scroll the current page down one page
Declaration
public IAllowRESTExecution PageDown(int pagesToScroll = 1)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pagesToScroll |
|
Returns
PageEnd()
Scroll the current page down to the end
Declaration
public IAllowRESTExecution PageEnd()
Returns
PageTop()
Scroll to the top of the current page
Declaration
public IAllowRESTExecution PageTop()
Returns
PageUp(Int32)
Scroll the current page up one page
Declaration
public IAllowRESTExecution PageUp(int pagesToScroll = 1)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pagesToScroll |
|
Returns
PreviousTab()
Switches to the previous tab.
Declaration
public IAllowRESTExecution PreviousTab()
Returns
QuerySelector(String)
Queries a single element using a CSS selector.
Declaration
public IAllowRESTExecution QuerySelector(string css)
Parameters
| Type |
Name |
Description |
| System.String |
css |
The CSS selector (e.g., ".class", "#id").
|
Returns
QuerySelectors(String)
Queries all elements matching a CSS selector.
Declaration
public IAllowRESTExecution QuerySelectors(string css)
Parameters
| Type |
Name |
Description |
| System.String |
css |
The CSS selector (e.g., ".items", "div > p").
|
Returns
Refresh()
Declaration
public IAllowRESTExecution Refresh()
Returns
Restore()
Declaration
public IAllowRESTExecution Restore()
Returns
RightClick(String)
Performs a right-click on an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution RightClick(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//a") or CSS (e.g., "#menu") selector.
|
Returns
RightClickAndDownload(String)
Performs a right-click and initiates a download from an element identified by an XPath or CSS selector.
Declaration
public IAllowRESTExecution RightClickAndDownload(string selector)
Parameters
| Type |
Name |
Description |
| System.String |
selector |
The XPath (e.g., "//a[@href]") or CSS (e.g., ".download") selector.
|
Returns
SaveTo(IGPALFile)
Declaration
public IAllowRESTExecution SaveTo(IGPALFile file)
Parameters
Returns
Scrolls an element horizontally by a specified number of pixels, expecting prior .WithXPath() or .WithCss().
Declaration
public IAllowRESTExecution ScrollByHorizontal(int pixels)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pixels |
The number of pixels to scroll horizontally (positive for right, negative for left).
|
Returns
Scrolls an element vertically by a specified number of pixels, expecting prior .WithXPath() or .WithCss().
Declaration
public IAllowRESTExecution ScrollByVertical(int pixels)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pixels |
The number of pixels to scroll vertically (positive for down, negative for up).
|
Returns
Scrolls the entire window horizontally by a specified number of pixels.
Declaration
public IAllowRESTExecution ScrollWindowByHorizontal(int pixels)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pixels |
The number of pixels to scroll horizontally (positive for right, negative for left).
|
Returns
Scrolls the entire window vertically by a specified number of pixels.
Declaration
public IAllowRESTExecution ScrollWindowByVertical(int pixels)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pixels |
The number of pixels to scroll vertically (positive for down, negative for up).
|
Returns
SendKey(String)
Sends a single key press to the active element or context.
Declaration
public IAllowRESTExecution SendKey(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The key to send (e.g., "Enter", "Tab").
|
Returns
SendString(String)
Sends a string of text as input to the active element or context.
Declaration
public IAllowRESTExecution SendString(string text)
Parameters
| Type |
Name |
Description |
| System.String |
text |
The text to send (e.g., "Hello World").
|
Returns
StealthOverrideReferrr()
Set google.com as the referrer in the browser, stealth operation
Declaration
public IAllowRESTExecution StealthOverrideReferrr()
Returns
Submits a form identified by an element within it.
Declaration
public IAllowRESTExecution SubmitForm(string elementId)
Parameters
| Type |
Name |
Description |
| System.String |
elementId |
The unique identifier of an element within the form (e.g., data-element-id).
|
Returns
SwitchToDefaultContent()
Switches the browser context to the default content (top-level page).
Declaration
public IAllowRESTExecution SwitchToDefaultContent()
Returns
SwitchToFrame(String)
Switches the browser context to a specific iframe identified by an element.
Declaration
public IAllowRESTExecution SwitchToFrame(string elementId)
Parameters
| Type |
Name |
Description |
| System.String |
elementId |
The unique identifier of the iframe element (e.g., data-element-id).
|
Returns
SwitchToShadowRoot(String)
Switches the browser context to the shadow root of a specified host element.
Declaration
public IAllowRESTExecution SwitchToShadowRoot(string elementId)
Parameters
| Type |
Name |
Description |
| System.String |
elementId |
The unique identifier of the host element containing the shadow root (e.g., data-element-id).
|
Returns
ToGPALObject()
Declaration
public RESTClient ToGPALObject()
Returns
While(Func<Boolean>)
Declaration
public IAllowRESTParametersOrExecution While(Func<bool> condition)
Parameters
| Type |
Name |
Description |
| System.Func<System.Boolean> |
condition |
|
Returns
WithAPIBase(String)
Declaration
public IAllowRESTEndpointDetails WithAPIBase(string url)
Parameters
| Type |
Name |
Description |
| System.String |
url |
|
Returns
WithAPIBase(String, String)
Declaration
public IAllowRESTEndpointDetails WithAPIBase(string url, string downloadPath)
Parameters
| Type |
Name |
Description |
| System.String |
url |
|
| System.String |
downloadPath |
|
Returns
WithCss(String)
Declaration
public IAllowRESTExecution WithCss(string css)
Parameters
| Type |
Name |
Description |
| System.String |
css |
|
Returns
WithCssFromResult(Int32)
Declaration
public IAllowRESTExecution WithCssFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithCssFromResult(String)
Declaration
public IAllowRESTExecution WithCssFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithElement(String)
Declaration
public IAllowRESTExecution WithElement(string elementId)
Parameters
| Type |
Name |
Description |
| System.String |
elementId |
|
Returns
WithElementFromResult(Int32)
Declaration
public IAllowRESTExecution WithElementFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithElementFromResult(String)
Declaration
public IAllowRESTExecution WithElementFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithEndpoint(Enums.ApiEndpoint)
Declaration
public IAllowRESTParametersOrExecution WithEndpoint(Enums.ApiEndpoint endpoint)
Parameters
Returns
WithEndpoint(String)
Declaration
public IAllowRESTParametersOrExecution WithEndpoint(string endpoint)
Parameters
| Type |
Name |
Description |
| System.String |
endpoint |
|
Returns
WithHttpMethod(String)
Declaration
public IAllowRESTExecution WithHttpMethod(string method)
Parameters
| Type |
Name |
Description |
| System.String |
method |
|
Returns
WithKey(String)
Declaration
public IAllowRESTExecution WithKey(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
WithKeyFromResult(Int32)
Declaration
public IAllowRESTExecution WithKeyFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithKeyFromResult(String)
Declaration
public IAllowRESTExecution WithKeyFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithMaxConnections(Int32)
Declaration
public IAllowCheckNetworkIdleOrExecution WithMaxConnections(int maxConnections)
Parameters
| Type |
Name |
Description |
| System.Int32 |
maxConnections |
|
Returns
WithName(String)
Declaration
public IAllowRESTEndpointDetails WithName(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithParameters(Object)
Declaration
public IAllowRESTScript WithParameters(object parameters)
Parameters
| Type |
Name |
Description |
| System.Object |
parameters |
|
Returns
WithParameters(Object[])
Declaration
public IAllowRESTScript WithParameters(params object[] parameters)
Parameters
| Type |
Name |
Description |
| System.Object[] |
parameters |
|
Returns
WithParametersFromResult(Int32)
Declaration
public IAllowRESTScript WithParametersFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithParametersFromResult(String)
Declaration
public IAllowRESTScript WithParametersFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithPixels(Int32)
Declaration
public IAllowRESTExecution WithPixels(int pixels)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pixels |
|
Returns
WithPixelsFromResult(Int32)
Declaration
public IAllowRESTExecution WithPixelsFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithPixelsFromResult(String)
Declaration
public IAllowRESTExecution WithPixelsFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithPruneMs(Int32)
Declaration
public IAllowCheckNetworkIdleOrExecution WithPruneMs(int pruneMs)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pruneMs |
|
Returns
WithReferrer(String)
Declaration
public IAllowRESTExecution WithReferrer(string referrer)
Parameters
| Type |
Name |
Description |
| System.String |
referrer |
|
Returns
WithReferrerFromResult(Int32)
Declaration
public IAllowRESTExecution WithReferrerFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithReferrerFromResult(String)
Declaration
public IAllowRESTExecution WithReferrerFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithResultName(String)
Declaration
public IAllowRESTParametersOrExecution WithResultName(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithScript(String)
Declaration
public IAllowRESTExecution WithScript(string script)
Parameters
| Type |
Name |
Description |
| System.String |
script |
|
Returns
WithTabId(Int32)
Declaration
public IAllowRESTExecution WithTabId(int tabId)
Parameters
| Type |
Name |
Description |
| System.Int32 |
tabId |
|
Returns
WithTabIdFromResult(Int32)
Declaration
public IAllowRESTExecution WithTabIdFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithTabIdFromResult(String)
Declaration
public IAllowRESTExecution WithTabIdFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithText(String)
Declaration
public IAllowRESTExecution WithText(string text)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
Returns
WithTextFromResult(Int32)
Declaration
public IAllowRESTExecution WithTextFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithTextFromResult(String)
Declaration
public IAllowRESTExecution WithTextFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithTimeoutMs(Int32)
Declaration
public IAllowCheckNetworkIdleOrExecution WithTimeoutMs(int timeoutMs)
Parameters
| Type |
Name |
Description |
| System.Int32 |
timeoutMs |
|
Returns
WithUrl(String)
Declaration
public IAllowRESTExecution WithUrl(string url)
Parameters
| Type |
Name |
Description |
| System.String |
url |
|
Returns
WithUrlFromResult(Int32)
Declaration
public IAllowRESTExecution WithUrlFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithUrlFromResult(String)
Declaration
public IAllowRESTExecution WithUrlFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
WithWorkflow(Action<RESTClient>)
Declaration
public IAllowRESTWorkflow WithWorkflow(Action<RESTClient> workflow)
Parameters
| Type |
Name |
Description |
| System.Action<RESTClient> |
workflow |
|
Returns
WithXPath(String)
Declaration
public IAllowRESTExecution WithXPath(string xpath)
Parameters
| Type |
Name |
Description |
| System.String |
xpath |
|
Returns
WithXPathFromResult(Int32)
Declaration
public IAllowRESTExecution WithXPathFromResult(int resultIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
resultIndex |
|
Returns
WithXPathFromResult(String)
Declaration
public IAllowRESTExecution WithXPathFromResult(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
Implements