Hello there,
after using this excellent peace of software called FireWatir, I wonder if there is a way to integrate jQuery-selector-magic to my test.
My first attempt is to use firewatir's js_eval()
method like this
require 'rubygems'
require 'firewatir'
f = FireWatir::Firefox.new
f.js_eval("alert(42);")
The only thing I get is a
JsshSocket::JSReferenceError: alert is not defined
which is kind of strange because other expressions like
f.js_eval("document.location.toString();")
Work like a charm!
Anyone with a hint?
Thanks and greets,
Joe