Hi, Make sure you escape '\' character in the file name by putting another '\' character in front of it.
- Angrez On 5/11/07, gary <[EMAIL PROTECTED]> wrote:
Thanks again for your help. i am getting the following load error - ubygems.8gemswatir- 1.5.1.1164unittestsjscriptExtraAlert.rb (LoadError) require 'watir' # the controller include Watir require 'watir/WindowHelper' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'dl/win32' require 'watir/winClicker' class TC_recorded < Test::Unit::TestCase def start_jsalert_clicker Thread.new{ system("ruby \"C:\\ruby\lib\ruby\gems\1.8\gems\watir- 1.5.1.1164\unittests\jscriptExtraAlert.rb\"") } end def captureText autoit = WIN32OLE.new('AutoItX3.Control') ret = autoit.WinWait "Windows Internet Explorer", "" text = autoit.WinGetText "Windows Internet Explorer", "" puts text.to_s autoit.Send "{ENTER}" end def test_1 @IE0 = IE.new @IE0.set_fast_speed @IE0.goto("www.hmv.co.uk") @IE0.link(:text, "Sign In").click start_jsalert_clicker @IE0.image(:alt, "continue").click captureText @IE0.close end end _______________________________________________ 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