1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

awesomium webview to String

Discussion in 'Visual Basic .NET' started by KirtiD, Jan 13, 2014.

Tags:
  1. KirtiD

    KirtiD Newbie

    Joined:
    Jun 13, 2013
    Messages:
    49
    Likes Received:
    15
    Location:
    Beed
    hi

    I am trying to scraper one web page which contains some java script so I wish to open web page in awesomium and convert it to string so I can pass it to htmlaligity pack

    can any one pls provide some help how to convert webview to string
     
  2. KirtiD

    KirtiD Newbie

    Joined:
    Jun 13, 2013
    Messages:
    49
    Likes Received:
    15
    Location:
    Beed
    hi

    following code worked for me

    Code:
    [/COLOR][COLOR=#000088]string[/COLOR][COLOR=#000000] html [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] webView[/COLOR][COLOR=#666600].[/COLOR][COLOR=#660066]ExecuteJavascriptWithResult[/COLOR][COLOR=#666600]([/COLOR][COLOR=#008800]"document.getElementsByTagName('html')[0].innerHTML"[/COLOR][COLOR=#666600]);[/COLOR][COLOR=#000088]