Hi Gustavo,

You could execute the javascript functions on a page using execScript.
This however works only in IE and not in firefox.

ienw = Watir::IE.new
The above will throw cookies set by the current page.

Just pass in your javscript function to execute.
eg: ienw.document.parentWindow.execScript("sf()")

The sf() on the page will put the focus into the textfield.
Hence you could call the javascript functions present on the page.

Hope this helps.

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to