Beispiel #1
0
        public Browser(BrowserOptions options)
        {
            if (options == null)
            {
                options = new BrowserOptions();
            }

            browser = CreateBrowser(options.ToJavascriptOptions());
        }
Beispiel #2
0
        public Task VisitAsync(Uri url, BrowserOptions options)
        {
            var input = new
            {
                url     = url.AbsoluteUri,
                options = options.ToJavascriptOptions()
            };

            return(ExecuteJavascriptFunction(browser.visit, input));
        }