WebView API
Please read the Material Usage Rules on this site.
Description
IWebViewAPI WebView
Gives you control over the WebView, which is mainly used in browsers (and rarely in other apps).
The main advantage of WebView is that you can interact with web page content using JavaScript, which seriously expands what you can do with websites.
Methods
Run JavaScript
string EvaluateScript(string script)
Parameters:
string script // JavaScript code.
Example
var webView = instance.DroidInstance.WebView;
var script = "return document.documentElement.innerHTML"; // JS to get the page html
var html = webView.EvaluateScript(script); // Run the script and get the html
Get WebSocket URL
string GetAttachedWebSocketUrl()
Example
var webView = instance.DroidInstance.WebView;
var webSoket = webView.GetAttachedWebSocketUrl(); // Get the WebSocket