Interface IWebView
Describes web view object.
public interface IWebView : IDisposable
  - Inherited Members
 
Properties
CanExecuteJavascriptInMainFrame
Gets a flag that indicates if you can execute javascript in the main frame.
bool CanExecuteJavascriptInMainFrame { get; }
  Property Value
WindowHost
Gets window host for the web view. Doesn't apply to off-screen views.
Window WindowHost { get; }
  Property Value
Methods
Close()
Closes view.
void Close()
  DeleteCookies(string, string)
Deletes cookies.
void DeleteCookies(string url, string name)
  Parameters
DeleteDomainCookies(string)
Deletes all cookies from specified domain.
void DeleteDomainCookies(string domain)
  Parameters
domainstringCookie domain.
DeleteDomainCookiesRegex(string)
Deletes all cookies from domains matching specified regular expression.
void DeleteDomainCookiesRegex(string domainRegex)
  Parameters
domainRegexstring
EvaluateScriptAsync(string)
Evaluates JavaScript script in the browser instance.
Task<JavaScriptEvaluationResult> EvaluateScriptAsync(string script)
  Parameters
scriptstring
Returns
GetCookies()
Gets all cookies.
List<HttpCookie> GetCookies()
  Returns
- List<HttpCookie>
 List of cookies.
GetCurrentAddress()
Gets current URL address.
string GetCurrentAddress()
  Returns
- string
 URL address.
GetPageSource()
Gets document source.
string GetPageSource()
  Returns
- string
 Document source.
GetPageSourceAsync()
Gets document source.
Task<string> GetPageSourceAsync()
  Returns
GetPageText()
Gets page text.
string GetPageText()
  Returns
- string
 Page text.
GetPageTextAsync()
Gets page text.
Task<string> GetPageTextAsync()
  Returns
Navigate(string)
Navigates to url.
void Navigate(string url)
  Parameters
urlstringURL to load.
NavigateAndWait(string)
Navigates to url and wait for page to be loaded.
void NavigateAndWait(string url)
  Parameters
urlstringURL to load.
Open()
Open view.
void Open()
  OpenDialog()
Open view as modal dialog.
bool? OpenDialog()
  Returns
- bool?
 
SetCookies(string, HttpCookie)
Sets cookie data.
void SetCookies(string url, HttpCookie cookie)
  Parameters
urlstringCookie URL.
cookieHttpCookieCookie data.
SetCookies(string, string, string, string, string, DateTime)
Sets cookie data.
void SetCookies(string url, string domain, string name, string value, string path, DateTime expires)
  Parameters
urlstringCookie URL.
domainstringCookie domain.
namestringCookie name.
valuestringCookie value.
pathstringCookie url path.
expiresDateTimeExpiration date.
Events
LoadingChanged
Occurs when web view loading changes, for example when page is loaded.
event EventHandler<WebViewLoadingChangedEventArgs> LoadingChanged