-
Notifications
You must be signed in to change notification settings - Fork 0
This document describes the functions available for writing scripts. Use the following code to obtain a connection to a webbrowser instance:
IBrowserProcess BrowserProcess = Limbara.App.ReuseOrCreateProcess()?.Result;
IBrowserConnection WebBrowser = Process?.ReuseOrOpenConnection()?.Result;The types below are found in the Limbara.Interface.RemoteControl namespace.
a browser process can host multiple browsers and has only one address to connect to.
| type | BrowserProcessConfig | {get;} |
id given from operating system.
| type | int? | {get;} |
requests identifiers of browsers hosted in the process.
| return type | IResultOrError<IEnumerable<IBrowserIdMeasurement>> |
opening the connection will fail if another connection to the browser is open.
| return type | IResultOrError<IBrowserConnection> | |||||||
| parameters |
|
|||||||
known connections to browsers in this process.
| type | IEnumerable<IBrowserConnection> | {get;} |
| type | bool | {get;} |
| return type | void |
| type | string | {get;} |
The type accessible via the UI seems to be "page".
| type | string | {get;} |
url at the time of measurement.
| type | string | {get;} |
title at the time of measurement.
| type | string | {get;} |
whether the hosting process has offered to connect to this browser.
| type | bool | {get;} |
Keep in mind that the browser will close the connection when chrome devtools are attached to the browser.
A past measurement. changing members such as Url or Title do not reflect the current state.
| type | IBrowserIdMeasurement | {get;} |
| type | bool | {get;} |
| type | IResultOrError<IDocument> | {get;} |
close the connection, making it easier for others to connect to the browser.
| return type | void |
returns null if ping was successful.
| return type | IError |
The whole URL.
Assign to this member to initiate navigation to the passed url.
Assigning to this member will eventually result in creation of a new document. This document reference will then not be useful anymore.
| type | string | {set;get;} |
starts reloading the resource from the current URL.
This will eventually result in creation of a new document. This document reference will then not be useful anymore.
| return type | void |
Element which is the root element of the document (for example, the element for HTML documents).
| type | IHTMLElement | {get;} |
Returns the list of elements which match the passed XPath.
https://en.wikipedia.org/wiki/XPath
| return type | IEnumerable<IHTMLElement> | |||||||
| parameters |
|
|||||||
Returns the first element which matches the passed XPath.
https://en.wikipedia.org/wiki/XPath
| return type | IHTMLElement | |||||||
| parameters |
|
|||||||
https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
| return type | IHTMLElement | |||||||
| parameters |
|
|||||||
loading state of the document.
http://www.w3.org/TR/html51/dom.html#dom-document-readystate
| type | string | {get;} |
Represents any HTML element. HTML elements may implement additional interfaces.
Serialized HTML fragment describing the element including its descendants. It can be set to replace the element with nodes parsed from the given string.
| type | string | {set;get;} |
Serialized HTML fragment describing the elements contents including its descendants.
| type | string | {set;get;} |
| type | string | {get;} |
| type | string | {get;} |
Sends a mouse click event to the element.
| return type | void |
Makes the element the current keyboard focus.
| return type | void |
| type | string | {get;} |
| type | string | {set;get;} |
Sets the value of a named attribute of the current node.
| return type | void | |||||||||
| parameters |
|
|||||||||
value of a specified attribute on the element. If the given attribute does not exist, the value returned will either be null or an empty string.
| return type | string | |||||||
| parameters |
|
|||||||
| type | IHTMLElement | {get;} |
provides properties for manipulating the layout and presentation of inline frame elements.
The active document in the inline frame's nested browsing context.
| type | IDocument | {get;} |
URL of the embedded page.
| type | string | {set;get;} |