GeckoInputElement.Click returns System.NullReferenceException <p>I am making use of the GeckoWebbrowser control in a C# Windows forms app environment. </p> <p>I am wanting to call the click event on a button on the browser page, from a code event behind.</p> <p>When I try an access a specific button I can find it by making use of the GetElementById command, however after assigning this information to the GeckoInputElement to call the click event, there is a null reference exception visible with this.</p> <p>My code call to get the element looks like this:</p> <pre><code>GeckoInputElement betbt = new GeckoInputElement(wBrowser.Document.GetElementById("bet-bt").DomObject); </code></pre> <p>If I assign it like this I can access the element but still cannot click it with the GeckoElement object:</p> <pre><code>GeckoElement g1 = (GeckoElement)wBrowser.Document.GetElementById("bet-bt"); </code></pre> <p>The HTML for the button looks as follows:</p> <pre><code>&lt;button data-action="bet" id="bet-bt" class="action"&gt;Bet&lt;/button&gt; </code></pre>