Questions tagged as 'html-agility-pack'

2
answers

Catch custom tags with Html Agility Pack

I'm using the Html Agility Pack plugin to handle html And I'd like it to capture my elements using% custom% I tried the following: HtmlDocument html = new HtmlDocument(); html.Load(new StringReader(Document.Content)); //A...
asked by 11.03.2015 / 20:09
1
answer

NullReferenceException using HtmlAgilityPack

I'd like to know how many tags <a> exist within div , but the NullReferenceException Exception is raised upon reaching XPath. var baseURL = "AQUI VAI A MINHA URL"; var client = new HtmlWeb(); var pagina = client.L...
asked by 05.07.2016 / 00:05
1
answer

Yield does not return data

When executing the method call, an Enumerable of HTML components should be returned. I'm using the HTML Agility Pack to read an HTML file. The same method works as expected by removing yield and manually adding to a list HtmlNo...
asked by 02.11.2014 / 01:51
2
answers

Error reading page html with Html Agility Pack

I'm reading an HTML page using the Html Agility Pack . I run the code on the notebook and it works perfectly. The problem is when I run the same on Windows Phone 7.1. Accent characters (ç) are encoded. And the strangest thing is that the sam...
asked by 14.11.2014 / 22:54
1
answer

Capture results using HtmlAgilityPack

I am using this code to search results using the Html Agility Pack. It looks like this: WebRequest request = WebRequest.Create(texto); WebResponse response = request.GetResponse(); StreamReader reader = new StreamReader(respons...
asked by 19.07.2016 / 22:17
1
answer

Getting table elements with htmlagilitypack

I have this structure reordered several times. 1st Table <table> <tbody> <tr> <th>titulo</th> </tr> </tbody> </table> 2nd Table <table> <tbody> <tr> <th>Texto&...
asked by 16.03.2015 / 12:25
1
answer

Strong element returning empty - Htmlagilitypack

I'm trying to get content from a strong text from the underwater site. When I open the site with browser I can see in the code the content however, using HtmlAgilityPack the content returns empty. Example: HtmlNodeCollection produtos...
asked by 24.11.2014 / 13:49
0
answers

Extract HTML from Inspect Element

Using HtmlAgilityPack, I use the following code to get the HTML of a website: var url = "teste.com"; var web = new HtmlWeb(); var doc = web.Load(url); But the data (a table) I want to extract from the site, only appears in the inspect brows...
asked by 07.09.2018 / 02:38
0
answers

Automate site navigation for software testing activities

I'm in a web systems development project, accessed by the browser. We are constantly making changes in the operation of the processes and at each specific period we perform a test on the system's functionalities (registers, validations, buttons,...
asked by 02.08.2016 / 16:35
1
answer

Read html file and get the value of a selected select

I'm reading an html file and need to get the value of value of the select selected by the user, how to do it? HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); var select = doc.DocumentNode.SelectNodes("//tab...
asked by 31.01.2018 / 18:20