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

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

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