I am trying to find a tool to capture items from web pages. First i have used xpath finder Firefox addon but sometimes it generated xpath with schemas (xpath 2.0) so it is not suitable
Below is the absolute xpath generated with firepath (firefox) for googles search button
html/body/div[2]/div[1]/div[1]/div[2]/div[2]/div/form/div[1]/button[1]
when i try to
doc.DocumentNode.SelectSingleNode("html/body/div[2]/div[1]/div[1]/div[2]/div[2]/div/form/div[1]/button[1]").InnerText;
it gives null reference exception.
So i cant use firepath too.
I need a tool which works with the HTML Agility Pack. Or need to find out why above does not work.
/to root it. Also, does thebuttonelement really contain anyInnerText??? - Oded