0

Trying to type text inside a textbox on a certin website that i load from the webBrowser.

Tried using HTMLElement but it's not recognized cause it's from system.windows.FORMS.

any ideas on how i might solve this problem?

example:

browser.Navigate(new URI("http://www.google.com"));
// Here get the textbox that we all type our text to search (the search textbox)
//type text inside it.

thanks in advance.

Bob Yaris
  • 19
  • 1
  • 6

1 Answers1

0

you have to invoke some javascript. E.g. to get title:

How can I get the page title in WebBrowser control?

So, browser.InvokeScript("eval", "document.getElementById('inputbox').text = 'INPUT'");

(javascript not tested).

Community
  • 1
  • 1
Boland
  • 155
  • 1
  • 14
  • Boland, I'am trying to get the textbow so i can type in it HTMLPage is not referenced in windows phone, or maybe i'm missing a .*dll? – Bob Yaris Mar 12 '13 at 10:17
  • Hmm, I just see it is indeed other namespace. See my editted post. – Boland Mar 12 '13 at 10:21