I'm trying to submit a form within the Webbrowser control but I can't find the 'name' or 'id' of the submit button. I can insert the Stock Code into the 'securityCode' filed but can't sumbit the form![]()
Below is the form and what I've tried without any luck.
HTML Code:WB1.Document.getElementById("DetailedQuoteForm").submit and WB1.Document.getElementById("DetailedQuoteForm").ClickHTML Code:<form name="DetailedQuoteForm" method="post" action="/do/secure/detailedQuote"> <input type="hidden" name="submit" value="true" /> <table class="selector-outer" summary="ASX Codes"> <tr> <td> <table class="selector-inner" summary="ASX Codes"> <tr> <td> <label for="inputasxcode">ASX Codes:</label> </td> <td> <input type="text" name="securityCode" maxlength="6" size="10" value="" id="inputasxcode" /> </td> <td> <span class="codesearch">(<a href="companyInfoSearch?url=detailedQuote_submit=true">Search for ASX Code</a>)</span> </td> <td> <input type="submit" value="Refresh" class="button" alt="Refresh" /> </td> </tr> </table> </td> </tr> </table> </form>




Reply With Quote