Hi Bach, FireWatir works on what's there on the browser. I tried you script here also. So on the browser image source is just "/Images/Global/placeitemsinbag.gif". Just try this.
$FF.button(:src, '/Images/Global/placeitemsinbag.gif').click It should work. Regards, Angrez On 1/17/07, Bach Le <[EMAIL PROTECTED]> wrote:
Hi Angrez, I just installed the latest gem, 1.0.1. I ran the same test again the script errors at this line: $FF.button(:src, ' http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click I get the following error: 1) Error: test_1(TestCase): FireWatir::Exception::UnknownObjectException: Unable to locate object, using src and http://www.anntaylor.com/Images/Global/placeitemsinbag.gif C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/./MozillaBaseElement.rb:739:in `assert_exists' C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.0.1-mswin32/./MozillaBaseElement.rb:897:in `click' FireWatir_AnnTaylor.rb:18:in `test_1' --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6078&messageID=17256#17256 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
