vb.net - Scraping Javascript webpage (script error occurred) -


i scraping dynamic webpage javascript based webpage. have done codes used load webpage first in program:

private sub form1_load(byval sender system.object, byval e system.eventargs) handles mybase.load      webbrowser1.navigate("http://www.changiairport.com/flight-info/flight-status/passenger-departures")  end sub 

however, each time run program, script errors pop up. here 1 of example of script error occurring:

an error has occurred in script on page.

line: 0

char: 0

error:script error

code: 0

url: http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4ae19b0b35192b8e

how should eliminate script errors?

you can use

webbrowser.scripterrorssuppressed = true; 

property.

details: https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.scripterrorssuppressed%28v=vs.110%29.aspx


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -