that code works fine with me against chrome. i suggest try it out for chrome(chrome supports the javascript driver.execute_script("return window.performance || window.webkitPerformance || window.mozPerformance || window.msPerformance;") afaik ie 9 supports that script being run but when i try it against ff 3.6(which does not support the webtimings) i get the error you get. you may need to update your browser or turn off the security setting that prevents that script from running
On Sun, Sep 11, 2011 at 1:11 PM, Jason Shelton <jas.shel...@hotmail.com>wrote: > Hello All, > > I am attempting to use the watir-webdriver-performance gem, but am getting > an error when I try to execute the code below: > > require 'watir-webdriver' > require 'watir-webdriver-performance' > > > b.goto 'http://watir.com' > load_secs = b.performance.summary[:response_time]/1000 > puts "Load Time: #{load_secs} seconds." > > > When I run this, I get the attached error message (Performance Error.gif). > Has anyone else encountered this issue, and if so, what was the resolution? > Thank you for your assistance. > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > watir-general@googlegroups.com > http://groups.google.com/group/watir-general > watir-general+unsubscr...@googlegroups.com > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com