Hi Vivek,

Yes you can call javascript functions from watir -
The method is execScript, you can call any javascript method or
variable available in the webpage.

eg:
ienw = Watir::IE.new
ienw.document.parentWindow.execScript("alert(\"hi\")")

Firewatir too has a method to execute javascript calls - js_eval
ffnew = FireWatir::Firefox.new
ffnew.js_eval("document.cookie")

-Tony
--~--~---------~--~----~------------~-------~--~----~
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: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to