after using this excellent software called FireWatir, I am wondering if there is a way to integrate jQuery-selector-magic into my test.
My first attempt is to use firewatir method js_eval()like this
require 'rubygems'
require 'firewatir'
f = FireWatir::Firefox.new
f.js_eval("alert(42);")
The only thing I get is
JsshSocket :: JSReferenceError: Undefined warning
which is strange because other expressions like
f.js_eval("document.location.toString();")
Work like a charm!
Anyone with a clue?
Thank you and welcome
Joe
source
share