Exemple #1
0
        protected async virtual Task SetupUrl()
        {
            Logging.AutomationRunner("Running web scrape execution code");
            htmlXpathParser = new HtmlWebscrapeParser(HtmlPath, Url, false, null);
            parserExitCode  = await htmlXpathParser.RunParserAsync();

            Url = htmlXpathParser.ResultString;
        }
        protected override async Task GetStringValue()
        {
            Logging.AutomationRunner("Running web scrape execution code");
            htmlXpathParser = new HtmlWebscrapeParser(HtmlPath, Url, false, null);
            parserExitCode  = await htmlXpathParser.RunParserAsync();

            stringWithValue = htmlXpathParser.ResultString;
        }
Exemple #3
0
 private async void HtmlScrapeGoButton_Click(object sender, RoutedEventArgs e)
 {
     Logging.AutomationRunner("Running web scrape code");
     htmlXpathParser = new HtmlWebscrapeParser(HtmlPathTextBox.Text, UrlTextBox.Text, true, HtmlDocumentTextFilename);
     HandleResult(await htmlXpathParser.RunParserAsync());
 }
Exemple #4
0
 private async void UrlGoButton_Click(object sender, RoutedEventArgs e)
 {
     Logging.AutomationRunner("Running browser execution code");
     htmlXpathParser = new HtmlBrowserParser(HtmlPathTextBox.Text, UrlTextBox.Text, (int)SetDelaySlider.Value, waitCounts, true, HtmlDocumentTextFilename, Browser);
     HandleResult(await htmlXpathParser.RunParserAsync());
 }