[2005]Click submit button without ID tag.
Hi! I readed this very useful post:
http://www.vbforums.com/showthread.php?t=416275
I searched and i couldn´t find it. So I ask:confused: :
Like in www.scour.com, the submit button hasn´t got any "id" tag, so I can´t click it by:
[CODE=vb]DirectCast(GetCurrentWebForm.item("*****", 0), mshtml.HTMLButtonElement).click()[/CODE]
and if I use:
[CODE=vb]GetCurrentWebForm.submit()[/CODE]
when i clicked a "Fill & Submit" button, the field became empty.
Thanks in advance!
Re: [2005]Click submit button without ID tag.
That button on scour.com is this element
Code:
<input type="submit" value=" Scour " accesskey="s" title="Search socially" class="searchbutton" />
You can use GetElementByTagName to get a collection of input element, then loop thru the collection test the type and value attributes. Once you find it, you invoke the click.