title: GeckoFX Source Get DOM / hidden div elements
body: <p>I am trying to replace the inner HTML of a specific div. Which shows up through the Gecko browser and view-source, but when the collection of elements is sent to a text box, the div is nowhere to be found. Here are some of the methods I have tried.. Any help is greatly appreciated..</p>
  
  <pre><code>//NODES
                  GeckoNodeCollection nodes2 = mainbrowser.Document.GetElementsByClassName("*");
                  foreach (GeckoNode node in nodes2)
                  {
                      GeckoElement element3 = node as GeckoElement;
                  }
                  GeckoNodeCollection nod = mainbrowser.Document.GetElementsByClassName("minin-class");
                  foreach (GeckoNode node in nod)
                  {
                      if (NodeType.Element == node.NodeType)
                      {
  
                          try
                          {
                              GeckoElement ele = (GeckoElement)node;
                          }
                          catch (Exception ex)
                          {
                              string ep = ex.ToString();
                              GeckoHtmlElement ele = (GeckoHtmlElement)node;
                          }
                      }
                  }
  
  //ELEMENT COLLECTION
                  GeckoElementCollection element = mainbrowser.Document.GetElementsByTagName("div");
                      foreach (GeckoHtmlElement curelement in element) {
                      if (curelement.GetAttribute("id") == "minin") {
                          curelement.InnerHtml = ("hello");
                      }
                  }
  
  //DOM
                  Gecko.DOM.GeckoLinkElement element6 = new Gecko.DOM.GeckoLinkElement(mainbrowser.Document.GetElementById("minin").DomObject);
                  element6.InnerHtml = "Hello";
  
  //XPATH-ATTEMPT
                  //var r = mainbrowser.Document.EvaluateXPath("//*[@id='minin']");
                  //Assert.AreEqual(1, r.GetNodes().Count());
  
                  //GeckoElementCollection nodes = mainbrowser.Document.EvaluateXPath(x.ToString()).GetNodes();
                  //foreach (GeckoNode node in nodes)
                  //{
                    //  GeckoElement element4 = node as GeckoElement;
                  //}
  </code></pre>