Wednesday 15 January 2014

c# ways to render a webpage and navigate/manipulate its DOM? -



c# ways to render a webpage and navigate/manipulate its DOM? -

i have understanding of dom+html etc i'm new c#, whats best way of downloading rendering (executing javascript + dom changes etc) , simulating user interaction webpage in c#?

i've seen html agility pack mentioned quite few times doesn't been updated since august 2012? has used , encountered problems? c# have built in this?

thanks!

first of htmlagilitypack it's not simulating user interaction in web page, htmlagilitypack agile html parser builds read/write dom , supports plain xpath or xslt (you don't have understand xpath nor xslt utilize it, don't worry...).

htmlagilitypack not back upwards javascript, it's of import step, because many developers problem total load of page in browser , request made htmlagilitypack or library utilize create request.

for user interaction, total load of web page, web testing recommend selenium, selenium automates browsers. selenium has back upwards several programming languages (java, c#, ruby, python, etc), can read more in above link documentation.

the drawback of selenium open browser create work, can simulated in environments run headless browser, can read more in next links :

selenium headless automated testing in ubuntu headless browser , scraping - solutions

i hope help you

c# dom html-agility-pack msdn

No comments:

Post a Comment