![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
Public Member Functions | |
| IPuppeteerClient | ToGPALObject () |
| Returns this client cast to its public IPuppeteerClient interface. | |
| IAllowPuppeteerCommunicator | WithAPIBase (string url) |
| Sets a custom REST API base URL to use instead of the default, for connecting to a non-default puppeteer server. | |
| IAllowPuppeteerCommunicator | WithUsePipes () |
| Clears any custom API base URL so the puppeteer communicator connects via pipes instead of HTTP. | |
| IAllowPuppeteerEndpointDetails | WithPuppeteerCommunicator (PuppeteerCommunicator communicator) |
| Sets the PuppeteerCommunicator used to send commands to the puppeteer/CDP server. | |
| IAllowPuppeteerParametersOrExecution | WithEndpoint (string endpoint) |
| Resets the client and sets a custom endpoint path to call directly, bypassing the built-in ApiEndpoint enum. | |
| IAllowPuppeteerParametersOrExecution | WithEndpoint (ApiEndpoint endpoint) |
| Resets the client and sets the endpoint to call, resolved from the given ApiEndpoint value. | |
| IAllowPuppeteerParametersOrExecution | WithResultName (string name) |
| Sets the name under which this execution's result will be stored, for later retrieval via the WithXFromResult methods. | |
| IAllowPuppeteerEndpointDetails | WithSaveFile (GPALFile file) |
| IAllowPuppeteerParametersOrExecution | WithSessionToken (string sessionToken) |
| Sets the session token parameter for the request. | |
| IAllowPuppeteerEndpointDetails | WithName (string name) |
| Sets the display name for this client. | |
| IAllowPuppeteerParametersOrExecution | WithUrl (string url) |
| Sets the url parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithUrlFromResult (int resultIndex) |
| Sets the url parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithUrlFromResult (string name) |
| Sets the url parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithTabId (int tabId) |
| Sets the tab id parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithTabIdFromResult (int resultIndex) |
| Sets the tab id parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithTabIdFromResult (string name) |
| Sets the tab id parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithWindowId (int windowId) |
| Sets the window id parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithWindowIdFromResult (int resultIndex) |
| Sets the window id parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithWindowIdFromResult (string name) |
| Sets the window id parameter from the named result of a previous execution. | |
| IAllowPuppeteerStorageOptions | WithStorageDomain (string domain) |
| Sets the storage domain parameter for storage operations. | |
| IAllowPuppeteerStorageOptions | WithStoragePath (string path) |
| Sets the storage path parameter for storage operations. | |
| IAllowPuppeteerStorageOptions | WithStorageKey (string key) |
| Sets the storage key parameter for storage operations. | |
| IAllowPuppeteerStorageOptions | WithStorageStoreName (string storeName) |
| Sets the storage store name parameter for IndexedDB storage operations. | |
| IAllowPuppeteerStorageOptions | WithStorageData (string data) |
| Sets the storage data parameter for storage operations. | |
| IAllowPuppeteerStorageOptions | WithDeleteAcrossOrigins (bool trueOrFalse) |
| Sets whether storage should be deleted across all origins, not just the current one. | |
| IAllowPuppeteerParametersOrExecution | WithKey (string key) |
| Sets the key parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithKeyFromResult (int resultIndex) |
| Sets the key parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithKeyFromResult (string name) |
| Sets the key parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithCss (string css) |
| Sets the css selector parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithCssFromResult (int resultIndex) |
| Sets the css selector parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithCssFromResult (string name) |
| Sets the css selector parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithElements (List< GPALElement > gpalElements) |
| Sets the gpalElements parameter, identifying the elements the request should act on. | |
| IAllowPuppeteerParametersOrExecution | WithElementFromResult (int resultIndex) |
| Sets the elementId parameter from the result at the given index of a previous execution, then calls WithElementId. | |
| IAllowPuppeteerParametersOrExecution | WithElementFromResult (string name) |
| Sets the elementId parameter from the named result of a previous execution, then calls WithElementId. | |
| IAllowPuppeteerParametersOrExecution | WithIteration (int iteration) |
| Sets the iteration for an endpoint to retrieve from the results when using WithXXXFromResults. | |
| IAllowPuppeteerParametersOrExecution | WithXPath (string xpath) |
| Sets the xpath parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithXPathFromResult (int resultIndex) |
| Sets the xpath parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithXPathFromResult (string name) |
| Sets the xpath parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithPixels (int pixels) |
| Sets the pixels parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithPixelsFromResult (int resultIndex) |
| Sets the pixels parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithPixelsFromResult (string name) |
| Sets the pixels parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithReferrer (string referrer) |
| Sets the referrer parameter for the request. | |
| IAllowPuppeteerParametersOrExecution | WithReferrerFromResult (int resultIndex) |
| Sets the referrer parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithReferrerFromResult (string name) |
| Sets the referrer parameter from the named result of a previous execution. | |
| IAllowPuppeteerExecution | WithText (string text) |
| Sets the text parameter for the request. | |
| IAllowPuppeteerExecution | WithTextFromResult (int resultIndex) |
| Sets the text parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerExecution | WithTextFromResult (string name) |
| Sets the text parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | DownloadTo (GPALFile file) |
| Where a file the browser downloads should end up. Not SaveTo, which is GPAL writing a file it already has. Only the directory of file reaches the browser, since CDP sets where a download lands and not what it is called; the download watcher gives it the name that was asked for. | |
| IAllowPuppeteerParametersOrExecution | WithElementId (string selector) |
| Sets the elementId parameter for the request, resolving CSS selectors to an element handle if needed. | |
| IAllowPuppeteerParametersOrExecution | WithElementIdFromResult (int resultIndex) |
| Sets the elementId parameter from the result at the given index of a previous execution, then calls WithElementId. | |
| IAllowPuppeteerParametersOrExecution | WithElementIdFromResult (string name) |
| Sets the elementId parameter from the named result of a previous execution, then calls WithElementId. | |
| IAllowPuppeteerParametersOrExecution | WithHPixelsFromResult (int resultIndex) |
| Sets the horizontal pixels parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithHPixelsFromResult (string name) |
| Sets the horizontal pixels parameter from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithVPixelsFromResult (int resultIndex) |
| Sets the vertical pixels parameter from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithVPixelsFromResult (string name) |
| Sets the vertical pixels parameter from the named result of a previous execution. | |
| string | Execute () |
| Synchronously executes the configured request and returns the result as a string. | |
| T | Execute< T > () |
| IAllowPuppeteerParametersOrExecution | AndThen () |
| Executes the configured request, then returns this client so further fluent calls can configure the next request. | |
| IAllowPuppeteerParametersOrExecution | AndThen< T > () |
| async Task< string > | ExecuteAsync () |
| Asynchronously executes the configured request and returns the result as a string. | |
| async Task< T > | ExecuteAsync< T > () |
| ResultCollection | GetExecutionResults () |
| Returns a collection of all named results recorded so far across this client's executions. | |
| IAllowPuppeteerExecution | WithHeader (string name, string value) |
| Sets an extra HTTP header to send with the request. | |
| IAllowPuppeteerParametersOrExecution | WithParameters (params object[] parameters) |
| Sets the request parameters as an ordinal array. | |
| IAllowPuppeteerParametersOrExecution | WithParameters (object parameters) |
| Sets the request parameters from an object with named fields. | |
| IAllowPuppeteerParametersOrExecution | WithParametersFromResult (int resultIndex) |
| Sets the request parameters from the result at the given index of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithParametersFromResult (string name) |
| Sets the request parameters from the named result of a previous execution. | |
| IAllowPuppeteerParametersOrExecution | WithEncoding (ContentEncoding encoding) |
| Sets the content encoding used for requests sent to the puppeteer communicator. | |
| IAllowPuppeteerWorkflow | WithWorkflow (Action< RESTClient > workflow) |
| Adds a workflow step that invokes the given action against this client. | |
| IAllowPuppeteerWorkflow | WhileLoopTimeout (int timeoutMs) |
| Sets the maximum time a subsequent While/Until loop may run before timing out. | |
| IAllowPuppeteerWorkflow | WhileLoopMaxIterations (int maxIterations) |
| Sets the maximum number of iterations a subsequent While/Until loop may run. | |
| IAllowPuppeteerParametersOrExecution | While (Func< bool > condition) |
| Configures execution to repeat while the given condition returns true, subject to WhileLoopTimeout/WhileLoopMaxIterations. | |
| IAllowPuppeteerParametersOrExecution | Until (Func< bool > condition) |
| Configures execution to repeat until the given condition returns true, subject to WhileLoopTimeout/WhileLoopMaxIterations. | |
| IAllowPuppeteerCheckNetworkIdleOrExecution | WithTimeoutMs (int timeoutMs) |
| Sets the timeout, in milliseconds, used by CheckNetworkIdle. | |
| IAllowPuppeteerCheckNetworkIdleOrExecution | WithPruneMs (int pruneMs) |
| Sets the prune interval, in milliseconds, used by CheckNetworkIdle. | |
| IAllowPuppeteerCheckNetworkIdleOrExecution | WithMaxConnections (int maxConnections) |
| Sets the maximum number of in-flight connections allowed before the network is considered busy, used by CheckNetworkIdle. | |
| IAllowPuppeteerParametersOrExecution | WithModifiers (ModifierKeys modifierKeys) |
| Sets the modifier keys parameter for the request. | |
| IAllowPuppeteerScrollElement | WithHPixels (int hPixels) |
| Sets the horizontal pixels parameter for the request. | |
| IAllowPuppeteerScrollElement | WithVPixels (int vPixels) |
| Sets the vertical pixels parameter for the request. | |
| IAllowPuppeteerDragAndDrop | WithDeltaX (int deltaX) |
| Sets the horizontal drag delta parameter for a drag and drop. | |
| IAllowPuppeteerDragAndDrop | WithDeltaY (int deltaY) |
| Sets the vertical drag delta parameter for a drag and drop. | |
| IAllowPuppeteerDragAndDrop | WithOffsetX (int offsetX) |
| Sets the horizontal grab offset within the element for a drag and drop. | |
| IAllowPuppeteerDragAndDrop | WithOffsetY (int offsetY) |
| Sets the vertical grab offset within the element for a drag and drop. | |
| IAllowPuppeteerAttribute | WithAttribute (string attribute) |
| Sets the attribute name parameter for SetAttribute/GetAttribute requests. | |
| IAllowPuppeteerAttribute | WithValue (string value) |
| Sets the attribute value parameter for SetAttribute requests. | |
| IAllowPuppeteerExecution | WithDestElementId (string destElementId) |
| Sets the destination element id parameter for a drag and drop. | |
| IAllowPuppeteerExecution | WithDeviceName (string sinkName) |
| Sets the CSS parameter. | |
| IAllowPuppeteerExecution | Back () |
| Configure this client to navigate the browser back one page in history. | |
| IAllowPuppeteerExecution | CaptureVisibleTab (ImageFormat imageFormat=ImageFormat.JPEG) |
| Configure this client to capture a screenshot of the visible tab in the given image format. | |
| IAllowPuppeteerExecution | CastDesktop (string deviceNameOrId) |
| Cast the desktop to the specified device name client.CastDesktop("living room").Execute();. | |
| IAllowPuppeteerExecution | CastTab (string deviceNameOrId) |
| Cast the current tab to the specified device name client.CastTab("living room").Execute();. | |
| IAllowPuppeteerExecution | CloseTab (GPALUrl url=null) |
| Configure this client to close the tab with the given URL, or the current tab if none is given. | |
| IAllowPuppeteerExecution | CloseTab (int tabId) |
| Configure this client to close the tab with the given tab id. | |
| IAllowPuppeteerExecution | CloseWindow (GPALUrl url=null) |
| Configure this client to close the window containing the given URL, or the current window if none is given. | |
| IAllowPuppeteerExecution | CloseWindow (int tabId) |
| Configure this client to close the window containing the tab with the given tab id. | |
| IAllowPuppeteerStorageOptions | DeleteStorage (WebsiteStorageType storageType) |
| Configure this client to delete the given type of website storage. | |
| IAllowPuppeteerParameters | ExecuteJavaScript (string script) |
| Configure this client to execute the given JavaScript in the page. | |
| IAllowPuppeteerParametersOrExecution | Fetch (string url) |
| Configure this client to issue an API request from inside the page, so it carries the session the browser has already earned: its cookies, TLS fingerprint, header order and any anti-bot clearance. | |
| IAllowPuppeteerParametersOrExecution | WithVerb (string method) |
| HTTP method for the request. GET when nothing was said. | |
| IAllowPuppeteerParametersOrExecution | WithBody (string body) |
| Body to send with the request. | |
| IAllowPuppeteerParametersOrExecution | WithContentType (string contentType) |
| Content type of the body. | |
| IAllowPuppeteerParametersOrExecution | WithHeaders (string[] headers) |
| Extra request headers, flattened to name, value, name, value. | |
| IAllowPuppeteerParametersOrExecution | WithBytes (bool asBytes) |
| True to bring the response body back base64 encoded, which is what a file needs. Text is the default, and reading a file as text would put a replacement character wherever a byte is not valid utf-8. | |
| IAllowPuppeteerInputText | FillInAppend (dynamic elementOrelementId, int delayMs=0) |
| Configure this client to append text to the given input element. | |
| IAllowPuppeteerInputText | FillInInsert (dynamic elementOrelementId, int delayMs=0) |
| Configure this client to insert text at the start of the given input element. | |
| IAllowPuppeteerInputText | FillInOverwrite (dynamic elementOrelementId, int delayMs=0) |
| Configure this client to overwrite the text of the given input element. | |
| IAllowPuppeteerExecution | Forward () |
| Configure this client to navigate the browser forward one page in history. | |
| IAllowPuppeteerExecution | FullScreen () |
| Configure this client to make the browser window fullscreen. | |
| IAllowPuppeteerExecution | GetReadyStatus (string sessionToken=null) |
| Configure this client to query the puppeteer server's ready status, optionally for a specific session token. | |
| IAllowPuppeteerParametersOrExecution | CheckNetworkIdle (int maxConnections=0) |
| Configure this client to check whether network activity has gone idle. | |
| IAllowPuppeteerExecution | GetShadowRoot (string css) |
| Configure this client to retrieve the shadow root of the element matching the given CSS selector. | |
| IAllowPuppeteerExecution | GetCurrentUrl () |
| Configure this client to retrieve the current page URL. | |
| IAllowPuppeteerExecution | GetCurrentWindow () |
| Configure this client to retrieve information about the current browser window. | |
| IAllowPuppeteerStorageOptions | GetStorage (WebsiteStorageType storageType) |
| Configure this client to retrieve the given type of website storage. | |
| IAllowPuppeteerExecution | GetLanguages () |
| Configure this client to retrieve the browser's preferred languages, most preferred first. | |
| IAllowPuppeteerExecution | GetUserAgent () |
| Configure this client to retrieve the browser's user agent string. | |
| IAllowPuppeteerExecution | GoTo (GPALUrl url) |
| Configure this client to navigate the current tab to the given URL, resolving relative URLs and checking robots.txt restrictions. | |
| IAllowPuppeteerExecution | GoToTab (GPALUrl url) |
| Configure this client to switch to the tab whose URL matches the given URL. | |
| IAllowPuppeteerExecution | GoToTab (int tabId) |
| Configure this client to switch to the tab with the given tab id. | |
| IAllowPuppeteerExecution | GoToWindow (GPALUrl url) |
| Configure this client to switch to the window containing the tab whose URL matches the given URL. | |
| IAllowPuppeteerExecution | GoToWindow (int tabId) |
| Configure this client to switch to the window containing the tab with the given tab id. | |
| IAllowPuppeteerExecution | InElement (string selector) |
| Configure this client to switch context into the element matching the given selector. | |
| IAllowPuppeteerExecution | InMainDom () |
| Configure this client to switch context back to the main document. | |
| IAllowPuppeteerExecution | InShadowDom (string selector) |
| Configure this client to switch context into the shadow root of the element matching the given selector. | |
| IAllowPuppeteerExecution | Maximize () |
| Configure this client to maximize the browser window. | |
| IAllowPuppeteerExecution | Minimize () |
| Configure this client to minimize the browser window. | |
| IAllowPuppeteerExecution | MoveTo (string selector) |
| Configure this client to move the mouse to the element matching the given selector. | |
| IAllowPuppeteerExecution | NewTab (GPALUrl url=null) |
| Configure this client to open a new tab navigated to the given URL, resolving relative URLs and checking robots.txt restrictions. | |
| IAllowPuppeteerExecution | NextTab () |
| Configure this client to switch to the next tab. | |
| IAllowPuppeteerExecution | NextWindow () |
| Configure this client to switch to the next browser window. | |
| IAllowPuppeteerExecution | Normal () |
| Configure this client to restore the browser window to its normal (non-maximized, non-minimized) state. | |
| IAllowPuppeteerExecution | OpenWindow (GPALUrl url) |
| Configure this client to open a new browser window navigated to the given URL, resolving relative URLs and checking robots.txt restrictions. | |
| IAllowPuppeteerExecution | OverrideReferrer (string referrer) |
| Configure this client to override the HTTP referrer sent with subsequent requests. | |
| IAllowPuppeteerExecution | SetUserAgent (string userAgent) |
| Configure this client to override the browser's user agent string for subsequent requests. | |
| IAllowPuppeteerExecution | PageDown (int pagesToScroll=1) |
| Configure this client to scroll the page down by the given number of page heights. | |
| IAllowPuppeteerExecution | PageEnd () |
| Configure this client to scroll to the bottom of the page. | |
| IAllowPuppeteerExecution | PageTop () |
| Configure this client to scroll to the top of the page. | |
| IAllowPuppeteerExecution | PageUp (int pagesToScroll=1) |
| Configure this client to scroll the page up by the given number of page heights. | |
| IAllowPuppeteerExecution | PreviousTab () |
| Configure this client to switch to the previous tab. | |
| IAllowPuppeteerExecution | PreviousWindow () |
| Configure this client to switch to the previous browser window. | |
| IAllowPuppeteerExecution | Refresh () |
| Configure this client to refresh the current page. | |
| IAllowPuppeteerExecution | PressModifierKey (ModifierKeys modifierKeys) |
| Configure this client to press and hold the given modifier key(s). | |
| IAllowPuppeteerExecution | ReleaseModifierKey (ModifierKeys modifierKeys) |
| Configure this client to release the given modifier key(s). | |
| int | GetModifierBitmask (ModifierKeys modifierKeys) |
| Converts GPAL ModifierKeys flags to the equivalent Chrome DevTools Protocol modifiers bitmask. | |
| string | GetModifiersString (int bitmask) |
| Converts a Chrome DevTools Protocol modifiers bitmask back to a human-readable, plus-separated list of modifier names. | |
| IAllowPuppeteerExecution | Restore () |
| Configure this client to restore the browser window to its normal size. | |
| IAllowPuppeteerParametersOrExecution | RightClickAndDownload (string selector) |
| Configure this client to right-click the given element and download the resulting context-menu target. | |
| IAllowPuppeteerParametersOrExecution | LeftClickAndDownload (string selector) |
| Configure this client to left-click the given element and download the resulting target. | |
| IAllowPuppeteerExecution | ScrollWindowByHorizontal (int pixels) |
| Configure this client to scroll the browser window horizontally by the given number of pixels. | |
| IAllowPuppeteerExecution | ScrollWindowByVertical (int pixels) |
| Configure this client to scroll the browser window vertically by the given number of pixels. | |
| IAllowPuppeteerExecution | SendString (string text, int delayMs=0) |
| Configure this client to type the given text into the focused element. | |
| IAllowPuppeteerExecution | SendKey (byte vkcode) |
| Configure this client to send a key press for the given virtual key code, translating it to the corresponding DOM key and code. | |
| IAllowPuppeteerExecution | StealthOverrideReferrer () |
| Configure this client to override the HTTP referrer with https://www.google.com, to mimic arriving from a search engine. | |
| IAllowPuppeteerExecution | StopCasting () |
| Configure this client to stop any active screen casting. | |
| IAllowPuppeteerExecution | SubmitForm (string selector) |
| Configure this client to submit the form containing the given element. | |
| IAllowPuppeteerExecution | SwitchToDefaultContent () |
| Configure this client to switch context back to the main document. | |
| IAllowPuppeteerExecution | SwitchToElement (string selector) |
| Configure this client to switch context into the element matching the given selector. | |
| IAllowPuppeteerExecution | SwitchToFrame (string selector) |
| Configure this client to switch context into the iframe matching the given selector. | |
| IAllowPuppeteerExecution | SwitchToShadowRoot (string selector) |
| Configure this client to switch context into the shadow root of the element matching the given selector. | |
| IAllowPuppeteerExecution | InjectScript (string script) |
| Configure this client to inject the given JavaScript into the page. | |
| IAllowPuppeteerExecution | ClearInjectedScripts () |
| Configure this client to remove all previously injected scripts (via InjectScript(string)). | |
| IAllowPuppeteerExecution | DownloadTo (string downloadPath) |
| Where files the browser downloads should end up. Not SaveTo, which is GPAL writing a file it already has. This sets the directory CDP sends downloads to. | |
| IAllowPuppeteerExecution | FireChangeEvent (string selector) |
| Configure this client to fire a DOM change event on the given element. | |
| IAllowPuppeteerExecution | Focus (string selector) |
| Configure this client to set keyboard focus on the given element. | |
| IAllowPuppeteerExecution | GetBoundingClientRect (string backendNodeId) |
| Configure this client to retrieve the bounding client rectangle of the given element. | |
| IAllowPuppeteerExecution | GetElementAttributeHash (string selector) |
| Configure this client to compute a hash of the given element's attributes, useful for detecting element changes. | |
| IAllowPuppeteerExecution | GetPageSource () |
| Configure this client to retrieve the current page's HTML source. | |
| IAllowPuppeteerExecution | GetParentNode (string selector) |
| Configure this client to retrieve the parent node of the given element. | |
| IAllowPuppeteerExecution | GetContentAndCss (string selector) |
| Configure this client to retrieve the text content and computed CSS of the given element. | |
| IAllowPuppeteerExecution | GetCssAttributes (string selector) |
| Configure this client to retrieve the CSS attributes of the given element. | |
| IAllowPuppeteerExecution | GetDomAttributes (string selector) |
| Configure this client to retrieve the DOM attributes of the given element. | |
| IAllowPuppeteerExecution | GetDomProperties (string selector) |
| Configure this client to retrieve the DOM properties of the given element. | |
| IAllowPuppeteerExecution | HideElement (string selector) |
| Configure this client to hide the given element. | |
| IAllowPuppeteerExecution | IsClickable (string selector) |
| Configure this client to check whether the given element is clickable. | |
| IAllowPuppeteerExecution | IsDisplayed (string selector) |
| Configure this client to check whether the given element is displayed. | |
| IAllowPuppeteerExecution | IsEnabled (string selector) |
| Configure this client to check whether the given element is enabled. | |
| IAllowPuppeteerExecution | IsEndOfPage () |
| Configure this client to check whether the page is scrolled to its end. | |
| IAllowPuppeteerExecution | IsVisibleInViewport (IGPALElement element) |
| Configure this client to check whether the given element is visible in the viewport. | |
| IAllowPuppeteerExecution | IsVisibleInViewport (string backendNodeId) |
| Configure this client to check whether the element with the given backend node id is visible in the viewport. | |
| IAllowPuppeteerParametersOrExecution | LeftClick (dynamic elementOrelementId) |
| Configure this client to left-click the given element. | |
| IAllowPuppeteerParametersOrExecution | MiddleClick (dynamic elementOrelementId) |
| Configure this client to middle-click the given element. | |
| IAllowPuppeteerParametersOrExecution | LeftDoubleClick (dynamic elementOrelementId) |
| Configure this client to double left-click the given element. | |
| IAllowPuppeteerParametersOrExecution | RightClick (dynamic elementOrelementId) |
| Configure this client to right-click the given element. | |
| IAllowPuppeteerSelectOptions | SelectClick (string elementHandle) |
| Configure this client to open a select dropdown's options by clicking the element with the given handle; combine with WithSelectValue/WithSelectIndex to choose an option. | |
| IAllowPuppeteerExecution | WithSelectValue (string value) |
| Set the value to choose from the Select menu. | |
| IAllowPuppeteerExecution | WithSelectIndex (int index) |
| Sets the index of the option to choose from a Select menu. | |
| IAllowPuppeteerExecution | ScrollIntoView (dynamic elementOrelementId) |
| Configure this client to scroll the given element into view. | |
| IAllowPuppeteerExecution | WindowInnerHeight () |
| Configure this client to retrieve the browser window's inner height. | |
| IAllowPuppeteerExecution | WindowInnerWidth () |
| Configure this client to retrieve the browser window's inner width. | |
| IAllowPuppeteerExecution | WindowOuterHeight () |
| Configure this client to retrieve the browser window's outer height. | |
| IAllowPuppeteerExecution | WindowOuterWidth () |
| Configure this client to retrieve the browser window's outer width. | |
| IAllowPuppeteerExecution | WindowPageOffsetX () |
| Configure this client to retrieve the page's horizontal scroll offset. | |
| IAllowPuppeteerExecution | WindowPageOffsetY () |
| Configure this client to retrieve the page's vertical scroll offset. | |
| IAllowPuppeteerExecution | WindowScreenLeft () |
| Configure this client to retrieve the browser window's screen X position. | |
| IAllowPuppeteerExecution | WindowScreenTop () |
| Configure this client to retrieve the browser window's screen Y position. | |
| IAllowPuppeteerExecution | Hover (string selector) |
| Configure this client to hover the mouse over the given element. | |
| IAllowPuppeteerExecution | MoveTo (System.Drawing.Point point) |
| Configure this client to move the mouse to a viewport coordinate instead of to an element, for targets with no DOM handle such as an image match. | |
| IAllowPuppeteerDragAndDrop | DragAndDrop (string selector) |
| Configure this client to start a drag from the given element; combine with WithDestElementId or WithDeltaX/WithDeltaY to set the drop target. | |
| IAllowPuppeteerExecution | QuerySelector (string css) |
| Configure this client to find the first element matching the given CSS selector. | |
| IAllowPuppeteerExecution | QuerySelectors (string css) |
| Configure this client to find all elements matching the given CSS selector. | |
| IAllowPuppeteerExecution | ScrollWindow (int hPixels, int vPixels) |
| Configure this client to scroll the browser window by the given horizontal and vertical pixel amounts. | |
| IAllowPuppeteerExecution | Evaluate (string xpath) |
| Configure this client to evaluate the given XPath expression and return the first matching node. | |
| IAllowPuppeteerExecution | EvaluateAll (string xpath) |
| Configure this client to evaluate the given XPath expression and return all matching nodes. | |
| IAllowPuppeteerExecution | ClearReferrer () |
| Configure this client to clear any overridden HTTP referrer. | |
| IAllowPuppeteerAttribute | SetAttribute (string selector) |
| Configure this client to set an attribute on the given element; combine with WithAttribute and WithValue to specify the attribute and value. | |
| IAllowPuppeteerRangeValue | SetRange (string selector) |
| Configure this client to set the value of a range input element; combine with WithRangeValue to specify the value. | |
| IAllowPuppeteerExecution | WithRangeValue (int rangeValue) |
| Sets the range value parameter for a SetRange request. | |
| IAllowPuppeteerScrollElement | ScrollElement (string selector) |
| Configure this client to scroll the given element; combine with WithHPixels/WithVPixels to specify the scroll amount. | |
| IAllowPuppeteerExecution | ScrollElement (int hPixels, int vPixels) |
| Configure this client to scroll the previously specified element by the given horizontal and vertical pixel amounts. | |
| IAllowPuppeteerExecution | SetValueFrom (string destSelector) |
| Sets the value of the destination element identified by destSelector from the source element identified by the preceding WithCss(string) or WithElementId(string) call. client.WithElementId("srcSelector").SetValueFrom("destSelector").Execute();. | |
| IAllowPuppeteerExecution | TopBrowser () |
| Configure this client to bring the browser window to the foreground. | |
| IAllowPuppeteerAttribute | GetAttribute (string selector) |
| Configure this client to retrieve an attribute from the given element; combine with WithAttribute to specify which attribute. | |
| IAllowPuppeteerStorageOptions | SetStorage (WebsiteStorageType storageType) |
| Configure this client to write the given type of website storage; combine with WithStorageDomain/WithStorageKey/WithStorageData etc to specify what to write. | |
| IAllowPuppeteerParametersOrExecution | UploadFrom (GPALFile fileToUpload) |
| Sets the upload path parameter(s) so a subsequent action uploads the given file(s). | |
| IAllowPuppeteerParametersOrExecution | LeftClickAndUpload (dynamic elementOrelementId) |
| Configure this client to left-click the given element to open a file picker, then upload the file(s) set via UploadFrom. | |
| Public Member Functions inherited from GenerallyPositive.Browser.IAllowPuppeteerParameters | |
| IAllowPuppeteerParametersOrExecution | WithEncoding (Enums.ContentEncoding encoding) |
Properties | |
| string | Name [get] |
| The display name assigned to this client via WithName. | |
Definition at line 33 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.AndThen | ( | ) |
Executes the configured request, then returns this client so further fluent calls can configure the next request.
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2243 of file PupeteerClient.cs.
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2249 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Back | ( | ) |
Configure this client to navigate the browser back one page in history.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2646 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CaptureVisibleTab | ( | ImageFormat | imageFormat = ImageFormat::JPEG | ) |
Configure this client to capture a screenshot of the visible tab in the given image format.
| imageFormat | The image format to capture |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2657 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CastDesktop | ( | string | deviceNameOrId | ) |
Cast the desktop to the specified device name client.CastDesktop("living room").Execute();.
| deviceNameOrId | The Cast Device Name or ID |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2669 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CastTab | ( | string | deviceNameOrId | ) |
Cast the current tab to the specified device name client.CastTab("living room").Execute();.
| deviceNameOrId | The Cast Device Name or ID |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2680 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.CheckNetworkIdle | ( | int | maxConnections = 0 | ) |
Configure this client to check whether network activity has gone idle.
| maxConnections | Maximum number of in-flight connections still considered idle |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2931 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ClearInjectedScripts | ( | ) |
Configure this client to remove all previously injected scripts (via InjectScript(string)).
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3552 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ClearReferrer | ( | ) |
Configure this client to clear any overridden HTTP referrer.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4111 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CloseTab | ( | GPALUrl | url = null | ) |
Configure this client to close the tab with the given URL, or the current tab if none is given.
| url | The URL of the tab to close, or null for the current tab |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2691 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CloseTab | ( | int | tabId | ) |
Configure this client to close the tab with the given tab id.
| tabId | The tab id to close |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2703 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CloseWindow | ( | GPALUrl | url = null | ) |
Configure this client to close the window containing the given URL, or the current window if none is given.
| url | The URL of the tab whose window should be closed, or null for the current window |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2715 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.CloseWindow | ( | int | tabId | ) |
Configure this client to close the window containing the tab with the given tab id.
| tabId | The tab id whose window should be closed |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2727 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.DeleteStorage | ( | WebsiteStorageType | storageType | ) |
Configure this client to delete the given type of website storage.
| storageType | The type of storage to delete |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2739 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.DownloadTo | ( | GPALFile | file | ) |
Where a file the browser downloads should end up.
Not SaveTo, which is GPAL writing a file it already has. Only the directory of file reaches the browser, since CDP sets where a download lands and not what it is called; the download watcher gives it the name that was asked for.
| file | Where the downloaded file is to end up |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2101 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.DownloadTo | ( | string | downloadPath | ) |
Where files the browser downloads should end up.
Not SaveTo, which is GPAL writing a file it already has. This sets the directory CDP sends downloads to.
| downloadPath | Directory downloaded files are to end up in |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3564 of file PupeteerClient.cs.
| IAllowPuppeteerDragAndDrop GenerallyPositive.Browser.PuppeteerClient.DragAndDrop | ( | string | selector | ) |
Configure this client to start a drag from the given element; combine with WithDestElementId or WithDeltaX/WithDeltaY to set the drop target.
| selector | CSS selector of the element to drag |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4038 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Evaluate | ( | string | xpath | ) |
Configure this client to evaluate the given XPath expression and return the first matching node.
| xpath | XPath expression |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4088 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.EvaluateAll | ( | string | xpath | ) |
Configure this client to evaluate the given XPath expression and return all matching nodes.
| xpath | XPath expression |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4100 of file PupeteerClient.cs.
| string GenerallyPositive.Browser.PuppeteerClient.Execute | ( | ) |
Synchronously executes the configured request and returns the result as a string.
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2210 of file PupeteerClient.cs.
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2215 of file PupeteerClient.cs.
| async Task< string > GenerallyPositive.Browser.PuppeteerClient.ExecuteAsync | ( | ) |
Asynchronously executes the configured request and returns the result as a string.
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2259 of file PupeteerClient.cs.
| async Task< T > GenerallyPositive.Browser.PuppeteerClient.ExecuteAsync< T > | ( | ) |
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2265 of file PupeteerClient.cs.
| IAllowPuppeteerParameters GenerallyPositive.Browser.PuppeteerClient.ExecuteJavaScript | ( | string | script | ) |
Configure this client to execute the given JavaScript in the page.
| script | The JavaScript to execute |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2752 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.Fetch | ( | string | url | ) |
Configure this client to issue an API request from inside the page, so it carries the session the browser has already earned: its cookies, TLS fingerprint, header order and any anti-bot clearance.
| url | Url to request. A relative one resolves against wherever the browser currently is |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2765 of file PupeteerClient.cs.
| IAllowPuppeteerInputText GenerallyPositive.Browser.PuppeteerClient.FillInAppend | ( | dynamic | elementOrelementId, |
| int | delayMs = 0 ) |
Configure this client to append text to the given input element.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the input |
| delayMs | Inter-character pacing delay in milliseconds for the per-character key-event fallback. 0 uses the fallback's default pacing. |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2834 of file PupeteerClient.cs.
| IAllowPuppeteerInputText GenerallyPositive.Browser.PuppeteerClient.FillInInsert | ( | dynamic | elementOrelementId, |
| int | delayMs = 0 ) |
Configure this client to insert text at the start of the given input element.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the input |
| delayMs | Inter-character pacing delay in milliseconds for the per-character key-event fallback. 0 uses the fallback's default pacing. |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2855 of file PupeteerClient.cs.
| IAllowPuppeteerInputText GenerallyPositive.Browser.PuppeteerClient.FillInOverwrite | ( | dynamic | elementOrelementId, |
| int | delayMs = 0 ) |
Configure this client to overwrite the text of the given input element.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the input |
| delayMs | Inter-character pacing delay in milliseconds for the per-character key-event fallback. 0 uses the fallback's default pacing. |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2876 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.FireChangeEvent | ( | string | selector | ) |
Configure this client to fire a DOM change event on the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3577 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Focus | ( | string | selector | ) |
Configure this client to set keyboard focus on the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3589 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Forward | ( | ) |
Configure this client to navigate the browser forward one page in history.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2895 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.FullScreen | ( | ) |
Configure this client to make the browser window fullscreen.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2905 of file PupeteerClient.cs.
| IAllowPuppeteerAttribute GenerallyPositive.Browser.PuppeteerClient.GetAttribute | ( | string | selector | ) |
Configure this client to retrieve an attribute from the given element; combine with WithAttribute to specify which attribute.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4207 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetBoundingClientRect | ( | string | backendNodeId | ) |
Configure this client to retrieve the bounding client rectangle of the given element.
| backendNodeId | Backend node id of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3601 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetContentAndCss | ( | string | selector | ) |
Configure this client to retrieve the text content and computed CSS of the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3647 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetCssAttributes | ( | string | selector | ) |
Configure this client to retrieve the CSS attributes of the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3659 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetCurrentUrl | ( | ) |
Configure this client to retrieve the current page URL.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2954 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetCurrentWindow | ( | ) |
Configure this client to retrieve information about the current browser window.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2964 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetDomAttributes | ( | string | selector | ) |
Configure this client to retrieve the DOM attributes of the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3671 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetDomProperties | ( | string | selector | ) |
Configure this client to retrieve the DOM properties of the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3683 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetElementAttributeHash | ( | string | selector | ) |
Configure this client to compute a hash of the given element's attributes, useful for detecting element changes.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3613 of file PupeteerClient.cs.
| ResultCollection GenerallyPositive.Browser.PuppeteerClient.GetExecutionResults | ( | ) |
Returns a collection of all named results recorded so far across this client's executions.
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2352 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetLanguages | ( | ) |
Configure this client to retrieve the browser's preferred languages, most preferred first.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2987 of file PupeteerClient.cs.
| int GenerallyPositive.Browser.PuppeteerClient.GetModifierBitmask | ( | ModifierKeys | modifierKeys | ) |
Converts GPAL ModifierKeys flags to the equivalent Chrome DevTools Protocol modifiers bitmask.
| modifierKeys | The modifier keys to convert |
Definition at line 3336 of file PupeteerClient.cs.
| string GenerallyPositive.Browser.PuppeteerClient.GetModifiersString | ( | int | bitmask | ) |
Converts a Chrome DevTools Protocol modifiers bitmask back to a human-readable, plus-separated list of modifier names.
| bitmask | The CDP modifiers bitmask |
Definition at line 3354 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetPageSource | ( | ) |
Configure this client to retrieve the current page's HTML source.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3624 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetParentNode | ( | string | selector | ) |
Configure this client to retrieve the parent node of the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3635 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetReadyStatus | ( | string | sessionToken = null | ) |
Configure this client to query the puppeteer server's ready status, optionally for a specific session token.
| sessionToken | Session token to check, or null for the default session |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2916 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetShadowRoot | ( | string | css | ) |
Configure this client to retrieve the shadow root of the element matching the given CSS selector.
| css | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2943 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.GetStorage | ( | WebsiteStorageType | storageType | ) |
Configure this client to retrieve the given type of website storage.
| storageType | The type of storage to retrieve |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2975 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GetUserAgent | ( | ) |
Configure this client to retrieve the browser's user agent string.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2997 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GoTo | ( | GPALUrl | url | ) |
Configure this client to navigate the current tab to the given URL, resolving relative URLs and checking robots.txt restrictions.
| url | The URL to navigate to |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3008 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GoToTab | ( | GPALUrl | url | ) |
Configure this client to switch to the tab whose URL matches the given URL.
| url | The URL of the tab to switch to |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3027 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GoToTab | ( | int | tabId | ) |
Configure this client to switch to the tab with the given tab id.
| tabId | The tab id to switch to |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3039 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GoToWindow | ( | GPALUrl | url | ) |
Configure this client to switch to the window containing the tab whose URL matches the given URL.
| url | The URL of the tab whose window to switch to |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3051 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.GoToWindow | ( | int | tabId | ) |
Configure this client to switch to the window containing the tab with the given tab id.
| tabId | The tab id whose window to switch to |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3063 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.HideElement | ( | string | selector | ) |
Configure this client to hide the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3695 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Hover | ( | string | selector | ) |
Configure this client to hover the mouse over the given element.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3996 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.InElement | ( | string | selector | ) |
Configure this client to switch context into the element matching the given selector.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3075 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.InjectScript | ( | string | script | ) |
Configure this client to inject the given JavaScript into the page.
| script | The JavaScript to inject |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3541 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.InMainDom | ( | ) |
Configure this client to switch context back to the main document.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3086 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.InShadowDom | ( | string | selector | ) |
Configure this client to switch context into the shadow root of the element matching the given selector.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3097 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.IsClickable | ( | string | selector | ) |
Configure this client to check whether the given element is clickable.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3707 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.IsDisplayed | ( | string | selector | ) |
Configure this client to check whether the given element is displayed.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3719 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.IsEnabled | ( | string | selector | ) |
Configure this client to check whether the given element is enabled.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3731 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.IsEndOfPage | ( | ) |
Configure this client to check whether the page is scrolled to its end.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3742 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.IsVisibleInViewport | ( | IGPALElement | element | ) |
Configure this client to check whether the given element is visible in the viewport.
| element | The element to check |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3753 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.IsVisibleInViewport | ( | string | backendNodeId | ) |
Configure this client to check whether the element with the given backend node id is visible in the viewport.
| backendNodeId | Backend node id of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3765 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.LeftClick | ( | dynamic | elementOrelementId | ) |
Configure this client to left-click the given element.
| elementOrelementId | A GPALElement, list of GPALElements, element id, or a viewport Point for a target with no DOM handle |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3777 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.LeftClickAndDownload | ( | string | selector | ) |
Configure this client to left-click the given element and download the resulting target.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3396 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.LeftClickAndUpload | ( | dynamic | elementOrelementId | ) |
Configure this client to left-click the given element to open a file picker, then upload the file(s) set via UploadFrom.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the target |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4448 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.LeftDoubleClick | ( | dynamic | elementOrelementId | ) |
Configure this client to double left-click the given element.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the target |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3821 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Maximize | ( | ) |
Configure this client to maximize the browser window.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3108 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.MiddleClick | ( | dynamic | elementOrelementId | ) |
Configure this client to middle-click the given element.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the target |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3799 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Minimize | ( | ) |
Configure this client to minimize the browser window.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3118 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.MoveTo | ( | string | selector | ) |
Configure this client to move the mouse to the element matching the given selector.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3129 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.MoveTo | ( | System.Drawing.Point | point | ) |
Configure this client to move the mouse to a viewport coordinate instead of to an element, for targets with no DOM handle such as an image match.
| point | Viewport coordinate, in CSS pixels |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4025 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.NewTab | ( | GPALUrl | url = null | ) |
Configure this client to open a new tab navigated to the given URL, resolving relative URLs and checking robots.txt restrictions.
| url | The URL to navigate to in the new tab, or null for a blank tab |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3141 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.NextTab | ( | ) |
Configure this client to switch to the next tab.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3161 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.NextWindow | ( | ) |
Configure this client to switch to the next browser window.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3171 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Normal | ( | ) |
Configure this client to restore the browser window to its normal (non-maximized, non-minimized) state.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3181 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.OpenWindow | ( | GPALUrl | url | ) |
Configure this client to open a new browser window navigated to the given URL, resolving relative URLs and checking robots.txt restrictions.
| url | The URL to navigate to in the new window |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3192 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.OverrideReferrer | ( | string | referrer | ) |
Configure this client to override the HTTP referrer sent with subsequent requests.
| referrer | The referrer URL to send |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3213 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PageDown | ( | int | pagesToScroll = 1 | ) |
Configure this client to scroll the page down by the given number of page heights.
| pagesToScroll | Number of page heights to scroll down |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3237 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PageEnd | ( | ) |
Configure this client to scroll to the bottom of the page.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3248 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PageTop | ( | ) |
Configure this client to scroll to the top of the page.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3258 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PageUp | ( | int | pagesToScroll = 1 | ) |
Configure this client to scroll the page up by the given number of page heights.
| pagesToScroll | Number of page heights to scroll up |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3269 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PressModifierKey | ( | ModifierKeys | modifierKeys | ) |
Configure this client to press and hold the given modifier key(s).
| modifierKeys | Modifier key(s) to press and hold |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3311 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PreviousTab | ( | ) |
Configure this client to switch to the previous tab.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3280 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.PreviousWindow | ( | ) |
Configure this client to switch to the previous browser window.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3290 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.QuerySelector | ( | string | css | ) |
Configure this client to find the first element matching the given CSS selector.
| css | CSS selector |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4050 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.QuerySelectors | ( | string | css | ) |
Configure this client to find all elements matching the given CSS selector.
| css | CSS selector |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4062 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Refresh | ( | ) |
Configure this client to refresh the current page.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3300 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ReleaseModifierKey | ( | ModifierKeys | modifierKeys | ) |
Configure this client to release the given modifier key(s).
| modifierKeys | Modifier key(s) to release |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3323 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.Restore | ( | ) |
Configure this client to restore the browser window to its normal size.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3373 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.RightClick | ( | dynamic | elementOrelementId | ) |
Configure this client to right-click the given element.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the target |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3843 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.RightClickAndDownload | ( | string | selector | ) |
Configure this client to right-click the given element and download the resulting context-menu target.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3384 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ScrollElement | ( | int | hPixels, |
| int | vPixels ) |
Configure this client to scroll the previously specified element by the given horizontal and vertical pixel amounts.
| hPixels | Horizontal pixels to scroll |
| vPixels | Vertical pixels to scroll |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4169 of file PupeteerClient.cs.
| IAllowPuppeteerScrollElement GenerallyPositive.Browser.PuppeteerClient.ScrollElement | ( | string | selector | ) |
Configure this client to scroll the given element; combine with WithHPixels/WithVPixels to specify the scroll amount.
| selector | CSS selector of the element to scroll |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4156 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ScrollIntoView | ( | dynamic | elementOrelementId | ) |
Configure this client to scroll the given element into view.
| elementOrelementId | A GPALElement, list of GPALElements, or element id identifying the target |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3897 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ScrollWindow | ( | int | hPixels, |
| int | vPixels ) |
Configure this client to scroll the browser window by the given horizontal and vertical pixel amounts.
| hPixels | Horizontal pixels to scroll |
| vPixels | Vertical pixels to scroll |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4075 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ScrollWindowByHorizontal | ( | int | pixels | ) |
Configure this client to scroll the browser window horizontally by the given number of pixels.
| pixels | Number of pixels to scroll horizontally |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3408 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.ScrollWindowByVertical | ( | int | pixels | ) |
Configure this client to scroll the browser window vertically by the given number of pixels.
| pixels | Number of pixels to scroll vertically |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3420 of file PupeteerClient.cs.
| IAllowPuppeteerSelectOptions GenerallyPositive.Browser.PuppeteerClient.SelectClick | ( | string | elementHandle | ) |
Configure this client to open a select dropdown's options by clicking the element with the given handle; combine with WithSelectValue/WithSelectIndex to choose an option.
| elementHandle | Object id of the select element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3865 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SendKey | ( | byte | vkcode | ) |
Configure this client to send a key press for the given virtual key code, translating it to the corresponding DOM key and code.
| vkcode | The virtual key code to send |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3446 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SendString | ( | string | text, |
| int | delayMs = 0 ) |
Configure this client to type the given text into the focused element.
| text | The text to type |
| delayMs | Inter-character pacing delay in milliseconds. 0 sends the whole string atomically; greater than 0 dispatches character-by-character with this delay between characters. |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3433 of file PupeteerClient.cs.
| IAllowPuppeteerAttribute GenerallyPositive.Browser.PuppeteerClient.SetAttribute | ( | string | selector | ) |
Configure this client to set an attribute on the given element; combine with WithAttribute and WithValue to specify the attribute and value.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4122 of file PupeteerClient.cs.
| IAllowPuppeteerRangeValue GenerallyPositive.Browser.PuppeteerClient.SetRange | ( | string | selector | ) |
Configure this client to set the value of a range input element; combine with WithRangeValue to specify the value.
| selector | CSS selector of the range element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4134 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.SetStorage | ( | WebsiteStorageType | storageType | ) |
Configure this client to write the given type of website storage; combine with WithStorageDomain/WithStorageKey/WithStorageData etc to specify what to write.
| storageType | The type of storage to write |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4251 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SetUserAgent | ( | string | userAgent | ) |
Configure this client to override the browser's user agent string for subsequent requests.
| userAgent | The user agent string to use |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3225 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SetValueFrom | ( | string | destSelector | ) |
Sets the value of the destination element identified by destSelector from the source element identified by the preceding WithCss(string) or WithElementId(string) call. client.WithElementId("srcSelector").SetValueFrom("destSelector").Execute();.
| destSelector | CSS selector identifying the destination element whose value is set |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 4185 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.StealthOverrideReferrer | ( | ) |
Configure this client to override the HTTP referrer with https://www.google.com, to mimic arriving from a search engine.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3462 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.StopCasting | ( | ) |
Configure this client to stop any active screen casting.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3472 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SubmitForm | ( | string | selector | ) |
Configure this client to submit the form containing the given element.
| selector | CSS selector of an element within the form |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3483 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SwitchToDefaultContent | ( | ) |
Configure this client to switch context back to the main document.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3494 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SwitchToElement | ( | string | selector | ) |
Configure this client to switch context into the element matching the given selector.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3505 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SwitchToFrame | ( | string | selector | ) |
Configure this client to switch context into the iframe matching the given selector.
| selector | CSS selector of the iframe element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3517 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.SwitchToShadowRoot | ( | string | selector | ) |
Configure this client to switch context into the shadow root of the element matching the given selector.
| selector | CSS selector of the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3529 of file PupeteerClient.cs.
| IPuppeteerClient GenerallyPositive.Browser.PuppeteerClient.ToGPALObject | ( | ) |
Returns this client cast to its public IPuppeteerClient interface.
Implements GenerallyPositive.Browser.IAllowToGPALObject< TResult >.
Definition at line 1573 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.TopBrowser | ( | ) |
Configure this client to bring the browser window to the foreground.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 4196 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.Until | ( | Func< bool > | condition | ) |
Configures execution to repeat until the given condition returns true, subject to WhileLoopTimeout/WhileLoopMaxIterations.
| condition | Predicate evaluated each iteration |
Implements GenerallyPositive.Browser.IAllowPuppeteerWorkflow.
Definition at line 2479 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.UploadFrom | ( | GPALFile | fileToUpload | ) |
Sets the upload path parameter(s) so a subsequent action uploads the given file(s).
| fileToUpload | The file(s) to upload |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 4434 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.While | ( | Func< bool > | condition | ) |
Configures execution to repeat while the given condition returns true, subject to WhileLoopTimeout/WhileLoopMaxIterations.
| condition | Predicate evaluated each iteration |
Implements GenerallyPositive.Browser.IAllowPuppeteerWorkflow.
Definition at line 2467 of file PupeteerClient.cs.
| IAllowPuppeteerWorkflow GenerallyPositive.Browser.PuppeteerClient.WhileLoopMaxIterations | ( | int | maxIterations | ) |
Sets the maximum number of iterations a subsequent While/Until loop may run.
| maxIterations | Maximum number of iterations |
Implements GenerallyPositive.Browser.IAllowPuppeteerWorkflow.
Definition at line 2456 of file PupeteerClient.cs.
| IAllowPuppeteerWorkflow GenerallyPositive.Browser.PuppeteerClient.WhileLoopTimeout | ( | int | timeoutMs | ) |
Sets the maximum time a subsequent While/Until loop may run before timing out.
| timeoutMs | Timeout in milliseconds |
Implements GenerallyPositive.Browser.IAllowPuppeteerWorkflow.
Definition at line 2445 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowInnerHeight | ( | ) |
Configure this client to retrieve the browser window's inner height.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3915 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowInnerWidth | ( | ) |
Configure this client to retrieve the browser window's inner width.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3925 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowOuterHeight | ( | ) |
Configure this client to retrieve the browser window's outer height.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3935 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowOuterWidth | ( | ) |
Configure this client to retrieve the browser window's outer width.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3945 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowPageOffsetX | ( | ) |
Configure this client to retrieve the page's horizontal scroll offset.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3955 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowPageOffsetY | ( | ) |
Configure this client to retrieve the page's vertical scroll offset.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3965 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowScreenLeft | ( | ) |
Configure this client to retrieve the browser window's screen X position.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3975 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WindowScreenTop | ( | ) |
Configure this client to retrieve the browser window's screen Y position.
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 3985 of file PupeteerClient.cs.
| IAllowPuppeteerCommunicator GenerallyPositive.Browser.PuppeteerClient.WithAPIBase | ( | string | url | ) |
Sets a custom REST API base URL to use instead of the default, for connecting to a non-default puppeteer server.
| url | Base URL of the REST API |
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpoint.
Definition at line 1591 of file PupeteerClient.cs.
| IAllowPuppeteerAttribute GenerallyPositive.Browser.PuppeteerClient.WithAttribute | ( | string | attribute | ) |
Sets the attribute name parameter for SetAttribute/GetAttribute requests.
| attribute | The attribute name |
Implements GenerallyPositive.Browser.IAllowPuppeteerAttribute.
Definition at line 2601 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithBody | ( | string | body | ) |
Body to send with the request.
| body | Request body |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2788 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithBytes | ( | bool | asBytes | ) |
True to bring the response body back base64 encoded, which is what a file needs. Text is the default, and reading a file as text would put a replacement character wherever a byte is not valid utf-8.
| asBytes | True for a base64 encoded body, false for text |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2822 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithContentType | ( | string | contentType | ) |
Content type of the body.
| contentType | Content type |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2799 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithCss | ( | string | css | ) |
Sets the css selector parameter for the request.
| css | CSS selector |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1890 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithCssFromResult | ( | int | resultIndex | ) |
Sets the css selector parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1901 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithCssFromResult | ( | string | name | ) |
Sets the css selector parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1912 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.WithDeleteAcrossOrigins | ( | bool | trueOrFalse | ) |
Sets whether storage should be deleted across all origins, not just the current one.
| trueOrFalse | True to delete storage across all origins |
Implements GenerallyPositive.Browser.IAllowPuppeteerStorageOptions.
Definition at line 1847 of file PupeteerClient.cs.
| IAllowPuppeteerDragAndDrop GenerallyPositive.Browser.PuppeteerClient.WithDeltaX | ( | int | deltaX | ) |
Sets the horizontal drag delta parameter for a drag and drop.
| deltaX | Horizontal drag distance, in pixels |
Implements GenerallyPositive.Browser.IAllowPuppeteerDragAndDrop.
Definition at line 2557 of file PupeteerClient.cs.
| IAllowPuppeteerDragAndDrop GenerallyPositive.Browser.PuppeteerClient.WithDeltaY | ( | int | deltaY | ) |
Sets the vertical drag delta parameter for a drag and drop.
| deltaY | Vertical drag distance, in pixels |
Implements GenerallyPositive.Browser.IAllowPuppeteerDragAndDrop.
Definition at line 2568 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithDestElementId | ( | string | destElementId | ) |
Sets the destination element id parameter for a drag and drop.
| destElementId | Element id of the drop target |
Definition at line 2625 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithDeviceName | ( | string | sinkName | ) |
Sets the CSS parameter.
| css | The CSS selector |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2636 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithElementFromResult | ( | int | resultIndex | ) |
Sets the elementId parameter from the result at the given index of a previous execution, then calls WithElementId.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1934 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithElementFromResult | ( | string | name | ) |
Sets the elementId parameter from the named result of a previous execution, then calls WithElementId.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1945 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithElementId | ( | string | selector | ) |
Sets the elementId parameter for the request, resolving CSS selectors to an element handle if needed.
| selector | An element id/object id, or a CSS selector to resolve |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2120 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithElementIdFromResult | ( | int | resultIndex | ) |
Sets the elementId parameter from the result at the given index of a previous execution, then calls WithElementId.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2141 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithElementIdFromResult | ( | string | name | ) |
Sets the elementId parameter from the named result of a previous execution, then calls WithElementId.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2152 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithElements | ( | List< GPALElement > | gpalElements | ) |
Sets the gpalElements parameter, identifying the elements the request should act on.
| gpalElements | The elements to act on |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1923 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithEncoding | ( | ContentEncoding | encoding | ) |
Sets the content encoding used for requests sent to the puppeteer communicator.
| encoding | The content encoding to use |
Definition at line 2423 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithEndpoint | ( | ApiEndpoint | endpoint | ) |
Resets the client and sets the endpoint to call, resolved from the given ApiEndpoint value.
| endpoint | The API endpoint to call |
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpointDetails.
Definition at line 1635 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithEndpoint | ( | string | endpoint | ) |
Resets the client and sets a custom endpoint path to call directly, bypassing the built-in ApiEndpoint enum.
| endpoint | The endpoint path to call |
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpointDetails.
Definition at line 1622 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithHeader | ( | string | name, |
| string | value ) |
Sets an extra HTTP header to send with the request.
| name | Header name |
| value | Header value |
Implements GenerallyPositive.Browser.IAllowPuppeteerExecution.
Definition at line 2368 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithHeaders | ( | string[] | headers | ) |
Extra request headers, flattened to name, value, name, value.
| headers | Header names and values in pairs |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2810 of file PupeteerClient.cs.
| IAllowPuppeteerScrollElement GenerallyPositive.Browser.PuppeteerClient.WithHPixels | ( | int | hPixels | ) |
Sets the horizontal pixels parameter for the request.
| hPixels | Number of horizontal pixels |
Implements GenerallyPositive.Browser.IAllowPuppeteerScrollElement.
Definition at line 2535 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithHPixelsFromResult | ( | int | resultIndex | ) |
Sets the horizontal pixels parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2163 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithHPixelsFromResult | ( | string | name | ) |
Sets the horizontal pixels parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2175 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithIteration | ( | int | iteration | ) |
Sets the iteration for an endpoint to retrieve from the results when using WithXXXFromResults.
| iteration |
Definition at line 1955 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithKey | ( | string | key | ) |
Sets the key parameter for the request.
| key | The key |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1857 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithKeyFromResult | ( | int | resultIndex | ) |
Sets the key parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1868 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithKeyFromResult | ( | string | name | ) |
Sets the key parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1879 of file PupeteerClient.cs.
| IAllowPuppeteerCheckNetworkIdleOrExecution GenerallyPositive.Browser.PuppeteerClient.WithMaxConnections | ( | int | maxConnections | ) |
Sets the maximum number of in-flight connections allowed before the network is considered busy, used by CheckNetworkIdle.
| maxConnections | Maximum number of in-flight connections |
Implements GenerallyPositive.Browser.IAllowPuppeteerCheckNetworkIdleOrExecution.
Definition at line 2513 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithModifiers | ( | ModifierKeys | modifierKeys | ) |
Sets the modifier keys parameter for the request.
| modifierKeys | Modifier keys to hold during the action |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2524 of file PupeteerClient.cs.
| IAllowPuppeteerEndpointDetails GenerallyPositive.Browser.PuppeteerClient.WithName | ( | string | name | ) |
Sets the display name for this client.
| name | The name to assign |
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpointDetails.
Definition at line 1676 of file PupeteerClient.cs.
| IAllowPuppeteerDragAndDrop GenerallyPositive.Browser.PuppeteerClient.WithOffsetX | ( | int | offsetX | ) |
Sets the horizontal grab offset within the element for a drag and drop.
| offsetX | Horizontal grab offset, in pixels, within the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerDragAndDrop.
Definition at line 2579 of file PupeteerClient.cs.
| IAllowPuppeteerDragAndDrop GenerallyPositive.Browser.PuppeteerClient.WithOffsetY | ( | int | offsetY | ) |
Sets the vertical grab offset within the element for a drag and drop.
| offsetY | Vertical grab offset, in pixels, within the element |
Implements GenerallyPositive.Browser.IAllowPuppeteerDragAndDrop.
Definition at line 2590 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithParameters | ( | object | parameters | ) |
Sets the request parameters from an object with named fields.
| parameters | Object whose properties are the named parameters |
Implements GenerallyPositive.Browser.IAllowPuppeteerParameters.
Definition at line 2390 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithParameters | ( | params object[] | parameters | ) |
Sets the request parameters as an ordinal array.
| parameters | Ordinal parameter values |
Implements GenerallyPositive.Browser.IAllowPuppeteerParameters.
Definition at line 2379 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithParametersFromResult | ( | int | resultIndex | ) |
Sets the request parameters from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParameters.
Definition at line 2401 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithParametersFromResult | ( | string | name | ) |
Sets the request parameters from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParameters.
Definition at line 2412 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithPixels | ( | int | pixels | ) |
Sets the pixels parameter for the request.
| pixels | Number of pixels |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1998 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithPixelsFromResult | ( | int | resultIndex | ) |
Sets the pixels parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2009 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithPixelsFromResult | ( | string | name | ) |
Sets the pixels parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2020 of file PupeteerClient.cs.
| IAllowPuppeteerCheckNetworkIdleOrExecution GenerallyPositive.Browser.PuppeteerClient.WithPruneMs | ( | int | pruneMs | ) |
Sets the prune interval, in milliseconds, used by CheckNetworkIdle.
| pruneMs | Prune interval in milliseconds |
Implements GenerallyPositive.Browser.IAllowPuppeteerCheckNetworkIdleOrExecution.
Definition at line 2502 of file PupeteerClient.cs.
| IAllowPuppeteerEndpointDetails GenerallyPositive.Browser.PuppeteerClient.WithPuppeteerCommunicator | ( | PuppeteerCommunicator | communicator | ) |
Sets the PuppeteerCommunicator used to send commands to the puppeteer/CDP server.
| communicator | The communicator to use for this client |
Implements GenerallyPositive.Browser.IAllowPuppeteerCommunicator.
Definition at line 1611 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithRangeValue | ( | int | rangeValue | ) |
Sets the range value parameter for a SetRange request.
| rangeValue | The value to set on the range input |
Implements GenerallyPositive.Browser.IAllowPuppeteerRangeValue.
Definition at line 4146 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithReferrer | ( | string | referrer | ) |
Sets the referrer parameter for the request.
| referrer | The referrer URL |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2031 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithReferrerFromResult | ( | int | resultIndex | ) |
Sets the referrer parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2042 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithReferrerFromResult | ( | string | name | ) |
Sets the referrer parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2053 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithResultName | ( | string | name | ) |
Sets the name under which this execution's result will be stored, for later retrieval via the WithXFromResult methods.
| name | The result name |
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpointDetails.
Definition at line 1648 of file PupeteerClient.cs.
| IAllowPuppeteerEndpointDetails GenerallyPositive.Browser.PuppeteerClient.WithSaveFile | ( | GPALFile | file | ) |
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpointDetails.
Definition at line 1654 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithSelectIndex | ( | int | index | ) |
Sets the index of the option to choose from a Select menu.
| index | Zero-based index of the option to choose |
Implements GenerallyPositive.Browser.IAllowPuppeteerSelectOptions.
Definition at line 3887 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithSelectValue | ( | string | value | ) |
Set the value to choose from the Select menu.
| value |
Implements GenerallyPositive.Browser.IAllowPuppeteerSelectOptions.
Definition at line 3877 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithSessionToken | ( | string | sessionToken | ) |
Sets the session token parameter for the request.
| sessionToken | The session token to send |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1665 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.WithStorageData | ( | string | data | ) |
Sets the storage data parameter for storage operations.
| data | The data to store |
Implements GenerallyPositive.Browser.IAllowPuppeteerStorageOptions.
Definition at line 1837 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.WithStorageDomain | ( | string | domain | ) |
Sets the storage domain parameter for storage operations.
| domain | The domain to scope the storage operation to |
Implements GenerallyPositive.Browser.IAllowPuppeteerStorageOptions.
Definition at line 1797 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.WithStorageKey | ( | string | key | ) |
Sets the storage key parameter for storage operations.
| key | The storage key |
Implements GenerallyPositive.Browser.IAllowPuppeteerStorageOptions.
Definition at line 1817 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.WithStoragePath | ( | string | path | ) |
Sets the storage path parameter for storage operations.
| path | The cookie/storage path to scope the operation to |
Implements GenerallyPositive.Browser.IAllowPuppeteerStorageOptions.
Definition at line 1807 of file PupeteerClient.cs.
| IAllowPuppeteerStorageOptions GenerallyPositive.Browser.PuppeteerClient.WithStorageStoreName | ( | string | storeName | ) |
Sets the storage store name parameter for IndexedDB storage operations.
| storeName | The object store name |
Implements GenerallyPositive.Browser.IAllowPuppeteerStorageOptions.
Definition at line 1827 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithTabId | ( | int | tabId | ) |
Sets the tab id parameter for the request.
| tabId | The tab id |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1731 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithTabIdFromResult | ( | int | resultIndex | ) |
Sets the tab id parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1742 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithTabIdFromResult | ( | string | name | ) |
Sets the tab id parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1753 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithText | ( | string | text | ) |
Sets the text parameter for the request.
| text | The text |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2064 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithTextFromResult | ( | int | resultIndex | ) |
Sets the text parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2076 of file PupeteerClient.cs.
| IAllowPuppeteerExecution GenerallyPositive.Browser.PuppeteerClient.WithTextFromResult | ( | string | name | ) |
Sets the text parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2087 of file PupeteerClient.cs.
| IAllowPuppeteerCheckNetworkIdleOrExecution GenerallyPositive.Browser.PuppeteerClient.WithTimeoutMs | ( | int | timeoutMs | ) |
Sets the timeout, in milliseconds, used by CheckNetworkIdle.
| timeoutMs | Timeout in milliseconds |
Implements GenerallyPositive.Browser.IAllowPuppeteerCheckNetworkIdleOrExecution.
Definition at line 2491 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithUrl | ( | string | url | ) |
Sets the url parameter for the request.
| url | The URL |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1687 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithUrlFromResult | ( | int | resultIndex | ) |
Sets the url parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1709 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithUrlFromResult | ( | string | name | ) |
Sets the url parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1720 of file PupeteerClient.cs.
| IAllowPuppeteerCommunicator GenerallyPositive.Browser.PuppeteerClient.WithUsePipes | ( | ) |
Clears any custom API base URL so the puppeteer communicator connects via pipes instead of HTTP.
Implements GenerallyPositive.Browser.IAllowPuppeteerEndpoint.
Definition at line 1601 of file PupeteerClient.cs.
| IAllowPuppeteerAttribute GenerallyPositive.Browser.PuppeteerClient.WithValue | ( | string | value | ) |
Sets the attribute value parameter for SetAttribute requests.
| value | The value to set |
Implements GenerallyPositive.Browser.IAllowPuppeteerAttribute.
Definition at line 2613 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithVerb | ( | string | method | ) |
HTTP method for the request. GET when nothing was said.
| method | HTTP method |
Implements GenerallyPositive.Browser.IAllowPuppeteerActions.
Definition at line 2777 of file PupeteerClient.cs.
| IAllowPuppeteerScrollElement GenerallyPositive.Browser.PuppeteerClient.WithVPixels | ( | int | vPixels | ) |
Sets the vertical pixels parameter for the request.
| vPixels | Number of vertical pixels |
Implements GenerallyPositive.Browser.IAllowPuppeteerScrollElement.
Definition at line 2546 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithVPixelsFromResult | ( | int | resultIndex | ) |
Sets the vertical pixels parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2187 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithVPixelsFromResult | ( | string | name | ) |
Sets the vertical pixels parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 2199 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithWindowId | ( | int | windowId | ) |
Sets the window id parameter for the request.
| windowId | The window id |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1764 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithWindowIdFromResult | ( | int | resultIndex | ) |
Sets the window id parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1775 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithWindowIdFromResult | ( | string | name | ) |
Sets the window id parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1786 of file PupeteerClient.cs.
| IAllowPuppeteerWorkflow GenerallyPositive.Browser.PuppeteerClient.WithWorkflow | ( | Action< RESTClient > | workflow | ) |
Adds a workflow step that invokes the given action against this client.
| workflow | Action to run as a workflow step |
Implements GenerallyPositive.Browser.IAllowPuppeteerWorkflow.
Definition at line 2434 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithXPath | ( | string | xpath | ) |
Sets the xpath parameter for the request.
| xpath | XPath expression |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1965 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithXPathFromResult | ( | int | resultIndex | ) |
Sets the xpath parameter from the result at the given index of a previous execution.
| resultIndex | Index into the execution results |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1976 of file PupeteerClient.cs.
| IAllowPuppeteerParametersOrExecution GenerallyPositive.Browser.PuppeteerClient.WithXPathFromResult | ( | string | name | ) |
Sets the xpath parameter from the named result of a previous execution.
| name | Name of a previous execution result |
Implements GenerallyPositive.Browser.IAllowPuppeteerParametersOrExecution.
Definition at line 1987 of file PupeteerClient.cs.
|
get |
The display name assigned to this client via WithName.
Implements GenerallyPositive.Browser.IPuppeteerClient.
Definition at line 1581 of file PupeteerClient.cs.