Thanks a lot for the reply. I hope I find you reliable, not unreliable.
I'm new to VBscript as you can see, I was exploring the elementsId but I
couldn't get anything out of it. I went to see the website's source trying
to find the elements IDs but not luck.
document.getElementByID("LoginButtonID").Click()
Should I do something like For each element ........
Could you please guide me towards a more specific reference so I can take it
from there??
Thanks again.
"mr_unreliable" wrote:
Quote:
> LuisE wrote: Quote:
> > I need a script to open a website, tab thru a form in that webpage and
> > "submit" or "enter"at the 11th field (after doing tab for 11 times).
>
> hi LuisE,
>
> Instead of using sendkeys, you would be much better off to use
> the "document object model" of the page you are navigating to.
>
> There are a number of example scripts posted on this newsgroup,
> showing how to do that. In general, you wait for the page to
> be fully loaded (by checking readystate), and then get the
> document object model (window.document). The reason for getting
> the DOM is that it makes it easy to parse the html. Instead of
> tabbing through the controls, you can pick up a reference to the
> control you want by either getting the element from its id, or
> by enumerating the elements (say, input elements or button
> elements) and then picking out the one you want by its caption.
>
> Finally, when you find the element you are looking for, then
> you can use the click verb to trigger the submit action.
>
> cheers, jw
> ____________________________________________________________
>
> You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
> the answers will be applicable to the questions)
>