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)