title: WPF WebBrowser or Awesomium WebControl - and how to control displayed web page
body: <p>Is there a way i can display web page inside WPF application with either standard WebBrowser or Awesomium WebControl and then control it. For example i would like to load google.com, enter something in search and click search. I managed to get web page source with WebBrowser but i can't modify value on search textbox. Is there any other way this can be done</p>
  
  <p>Loading page like this:</p>
  
  <pre><code>//private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
          //{
          //  this.MyPage.Navigate("http://www.google.com");
          //}
  </code></pre>
  
  <p>Getting html like this:</p>
  
  <pre><code>//private void MyPage_OnLoadCompleted(object sender, NavigationEventArgs e)
          //{
          //  dynamic doc = MyPage.Document;
          //  dynamic htmlText = doc.documentElement.InnerHtml;
          //  string htmlstring = htmlText;
              //bool search = htmlstring.Contains("lst-ib");
              //var dom = MyPage.Document as HTMLDocument;
              //if (dom != null)
              //{
              //  var ec = dom.getElementById("lst-ib");
              //  SOMETHING TO ACCESS VALUE OF lst-ib AND CLICK SEARCH
  
              //}
            //}
  </code></pre>
  
  <p>I wasn't able to get html with awesomium and also can't find anything on how to do it, so every help is appreciated.</p>