Interface ISunamoBrowser
- Namespace
- SunamoInterfaces.Interfaces
- Assembly
- SunamoInterfaces.dll
Interface for browser control operations. The Control class depends on the type of target application. Used in:
- SunamoCef/CefBrowser
- WebSunamo/SunamoBrowser
- UniversalWebControl/SunamoBrowser
public interface ISunamoBrowser
- Extension Methods
Properties
HTML
Gets the HTML content.
string HTML { get; }
Property Value
Source
Gets or sets the source URI of the browser.
Uri Source { get; set; }
Property Value
Methods
GetContent()
Gets the HTML content. Sometimes getting outer HTML is quite slow, so put await Task.Delay(500) before calling GetContent(). Remember for troubles with GeoCachingTool.
Task<string> GetContent()
Returns
GetHtmlDocument()
Gets the HTML document. Must be Task due to UWP! Much time spent with this on GeoCachingTool.
Task<HtmlDocument> GetHtmlDocument()
Returns
- Task<HtmlDocument>
HTML document task.
Init()
Initializes the browser control.
void Init()
Navigate(string)
Navigates to the specified URI.
void Navigate(string uri)
Parameters
uristringThe URI to navigate to.
ScrollToEnd()
Scrolls to the end of the page.
bool ScrollToEnd()
Returns
- bool
True if successfully scrolled to end; otherwise, false.