locked
Extract elements from a website

    Question

  • Hello developers! 

    I am trying to get an element from a website and put it in a textbox in my store app. I am using javascript with the method invokescriptasync(). This is the code in C#:

     

               string[] args = { " var number = document.getElementById('ID').innerText; " }; 

                string foo = await webview.InvokeScriptAsync("eval", args);

     But how can i place the result in the textbox? I used alert() and return() in the javascript line but did not work. 

    Thank you!

    Tuesday, March 25, 2014 7:10 PM

Answers

All replies