You can use fire_event to trigger events on elements. And you can bind events to _javascript_ functions. So create an invisible element (say, a div), bind your function to some event and then use Watir to trigger the event.

Bret

On 2/26/06, Brandon Carlson <[EMAIL PROTECTED]> wrote:
For example:

<html>
  <head>
  <script>
    function foo() {
      alert("foo()");
    }
  </script>
  </head>
  <body/>
</html>

I would like to write a Watir script that can call this function directly.

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to