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; }
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()); }
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()); }