Home > Net >  C # winform get HTML javascript execution results
C # winform get HTML javascript execution results

Time:11-10

Had written an HTML page, javascript receiving parameters in 1, 2 parameters, after doing operations in the label will be showed on the page. The page test normal.
Now in the c # winform pieced together to access the URL: http://... 1/page HTML? Parameter 1=value & amp; Parameter 2=value.
How to get to the page on the label value?

CodePudding user response:

Get the page, parse HTML

CodePudding user response:

 
WebClient wc=new WebClient ();
The string result=wc. DownloadString (" http://... 1/page HTML? Parameter 1=value & amp; Parameter 2=value ");

CodePudding user response:

refer to the second floor big watermelon cut a piece of a kilo of reply:
 
WebClient wc=new WebClient ();
The string result=wc. DownloadString (" http://... 1/page HTML? Parameter 1=value & amp; Parameter 2=value ");

Hello, this tried and only static web pages before the execution of the access to the js code, the label is also empty.
I need to get the js execution after web page code.

CodePudding user response:

I want to know, before a word is said a js running under the client browser, after a half I want access to a page on the server

We have been hard to explain the problem, we can only let your winform pretend is a browser, CEF call page and interact with the local c #

CodePudding user response:

Method are many, in addition to using a browser plug-in, regular expressions, string, etc., like a HtmlParser components, can according to parse HTML dom structure,
  •  Tags:  
  • C#
  • Related