IBrowser Methods |
The IBrowser type exposes the following members.
Name | Description | |
---|---|---|
CloseBrowser |
Request that the browser close. The JavaScript 'onbeforeunload' event will be fired.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
GetFrame(Int64) |
Returns the frame with the specified identifier, or NULL if not found.
| |
GetFrame(String) |
Returns the frame with the specified name, or NULL if not found.
| |
GetFrameCount |
Returns the number of frames that currently exist.
| |
GetFrameIdentifiers |
Returns the identifiers of all existing frames.
| |
GetFrameNames |
Returns the names of all existing frames.
| |
GetHost |
Returns the browser host object. This method can only be called in the browser process.
| |
GoBack |
Navigate backwards.
| |
GoForward |
Navigate forwards.
| |
IsSame |
Returns true if this object is pointing to the same handle as that object.
| |
Reload |
Reload the current page.
| |
StopLoad |
Stop loading the page.
|
Name | Description | |
---|---|---|
AddWordToDictionary |
Add the specified word to the spelling dictionary.
(Defined by WebBrowserExtensions.) | |
Back |
Navigates back, must check CanGoBack before calling this method.
(Defined by WebBrowserExtensions.) | |
CloseDevTools |
Explicitly close the developer tools window if one exists for this browser instance.
(Defined by WebBrowserExtensions.) | |
Copy |
Execute Copy on the focused frame.
(Defined by WebBrowserExtensions.) | |
Cut |
Execute Cut on the focused frame.
(Defined by WebBrowserExtensions.) | |
Delete |
Execute Delete on the focused frame.
(Defined by WebBrowserExtensions.) | |
EvaluateScriptAsPromiseAsync |
Evaluate Javascript in the context of this Browsers Main Frame. The script will be executed
asynchronously and the method returns a Task encapsulating the response from the Javascript. The result of the script execution
in javascript is Promise.resolve so even no promise values will be treated as a promise. Your javascript should return a value.
The javascript will be wrapped in an Immediately Invoked Function Expression.
When the promise either trigger then/catch this returned Task will be completed.
(Defined by WebBrowserExtensions.) | |
EvaluateScriptAsync |
Evaluate some Javascript code in the context of the MainFrame of the ChromiumWebBrowser. The script will be executed
asynchronously and the method returns a Task encapsulating the response from the Javascript
(Defined by WebBrowserExtensions.) | |
ExecuteDevToolsMethodAsync |
Execute a method call over the DevTools protocol. This is a more structured
version of SendDevToolsMessage. ExecuteDevToolsMethod(IBrowserHost, Int32, String, JsonString) can only be called on the
CEF UI Thread, this method can be called on any thread.
See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details
of supported methods and the expected parameters dictionary contents.
See the SendDevToolsMessage documentation for additional usage information.
(Defined by DevToolsExtensions.) | |
ExecuteScriptAsync(String) | Overloaded.
Execute Javascript in the context of this Browser Main Frame. As the method name implies, the script will be executed
asynchronously, and the method therefore returns before the script has actually been executed.
(Defined by WebBrowserExtensions.) | |
ExecuteScriptAsync(String, Object) | Overloaded.
Execute Javascript code in the context of this WebBrowser. As the method name implies, the script will be executed
asynchronously, and the method therefore returns before the script has actually been executed. This simple helper extension
will encapsulate params in single quotes (unless int, uint, etc)
(Defined by WebBrowserExtensions.) | |
Find |
Search for text within the current page.
(Defined by WebBrowserExtensions.) | |
Forward |
Navigates forward, must check CanGoForward before calling this method.
(Defined by WebBrowserExtensions.) | |
GetDevToolsClient |
Gets a new Instance of the DevTools client
(Defined by DevToolsExtensions.) | |
GetSourceAsync |
Retrieve the main frame's HTML source using a TaskTResult.
(Defined by WebBrowserExtensions.) | |
GetTextAsync |
Retrieve the main frame's display text using a TaskTResult.
(Defined by WebBrowserExtensions.) | |
GetZoomLevelAsync |
Asynchronously gets the current Zoom Level.
(Defined by WebBrowserExtensions.) | |
LoadUrlWithPostData |
Creates a new instance of IRequest with the specified Url and Method = POST and then calls
LoadRequest(IRequest).
(Defined by WebBrowserExtensions.) | |
Paste |
Execute Paste on the focused frame.
(Defined by WebBrowserExtensions.) | |
Opens a Print Dialog which if used (can be user cancelled) will print the browser contents.
(Defined by WebBrowserExtensions.) | ||
PrintToPdfAsync |
Asynchronously prints the current browser contents to the PDF file specified. The caller is responsible for deleting the file
when done.
(Defined by WebBrowserExtensions.) | |
Redo |
Execute Redo on the focused frame.
(Defined by WebBrowserExtensions.) | |
Reload |
Reloads the page being displayed, optionally ignoring the cache (which means the whole page including all .css, .js etc.
resources will be re-fetched).
(Defined by WebBrowserExtensions.) | |
ReplaceMisspelling |
If a misspelled word is currently selected in an editable node calling this method will replace it with the specified word.
(Defined by WebBrowserExtensions.) | |
SelectAll |
Execute SelectAll on the focused frame.
(Defined by WebBrowserExtensions.) | |
SendMouseWheelEvent |
Send a mouse wheel event to the browser.
(Defined by WebBrowserExtensions.) | |
SetMainFrameDocumentContentAsync |
Set the Document Content for the Main Frame using DevTools Protocol.
(Defined by DevToolsExtensions.) | |
SetZoomLevel |
Change the ZoomLevel to the specified value. Can be set to 0.0 to clear the zoom level.
(Defined by WebBrowserExtensions.) | |
ShowDevTools |
Open developer tools in its own window.
(Defined by WebBrowserExtensions.) | |
StartDownload |
Download the file at url using IDownloadHandler.
(Defined by WebBrowserExtensions.) | |
Stop |
Stops loading the current page.
(Defined by WebBrowserExtensions.) | |
StopFinding |
Cancel all searches that are currently going on.
(Defined by WebBrowserExtensions.) | |
Undo |
Execute Undo on the focused frame.
(Defined by WebBrowserExtensions.) | |
ViewSource |
Opens up a new program window (using the default text editor) where the source code of the currently displayed web page is
shown.
(Defined by WebBrowserExtensions.) |