[Wtr-general] File won't recognize require watir/testcase
Im trying to run a test suite, but my main file gets interrupted by an error when trying to use require watir/testcase, the compiler keeps giving me a no such file to load error, for the testcase example. I dont see how this should cause any trouble because the compiler recognizes the watir/testUnitAddons file. I have checked to see that the file is actually there, and it is. Here is my code. require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' #topdir = File.dirname(__FILE__) #Dir.chdir topdir do # $all_tests = Dir[*Blogs.rb] #end $all_tests.each {|x| begin timeout(1.0) do |timeout_length| require x end rescue Timeout::Error = e puts Error Message: + e end } And here is the error I keep getting. ruby Automate.rb c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- runit/robserver (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/watir/testcase.rb:3 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from Automate.rb:6 Exit code: 1 Im using version 1.4.1 , Thanks, -Ryan ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] startClicker
I am trying to use the startClicker method to click on a popup box. The code is absolutely correct, however when the program runs and the popup appears, another command prompt appears and starts to cycle through a whole bunch of stuff Ive never seen before. Its almost as if I went into my computer and clicked the actual file. I have also checked, and I am calling the method at the right time. Here is what I have. class TC_blogsFrontEnd Test::Unit::TestCase def test_15_Blogs_DeleteBlog $ie = Watir::IE.new() $ie.goto('http://localhost/cs') $ie.link(:text, 'Control Panel').click $ie.link(:text, 'My Blogs').click $ie.goto('http://localhost/cs/ControlPanel/Blogs/postlist.aspx') startClicker('Cancel') $ie.link(:text, 'Delete').click if $ie.contains_text('Change Post title attempt') puts Blogx15 Failed else puts Blogx15 Passed end $ie.goto('http://localhost/cs/') end def startClicker( button , waitTime = 3) w = WinClicker.new longName = $ie.dir.gsub(/ , \\ ) shortName = w.getShortFileName(longName) c = start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} puts Starting #{c} w.winsystem(c) w=nil end end If yall have any ideas that would be great! J Thanks, -Ryan Howard ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Inputing text into a textarea that is contained within a div
Hi, Im having a lot of trouble trying to get Watir to input text into a textarea that is within a div, I have tried a lot of things, such as ie.divs(:class, CommonFormField ).set('watir') and a ton of variations to that. I am totally out of ideas. From what I know, the box is know as a WYSIWYG editor, and the box has buttons on top that look like these. Any help would be greatly appreciated. -Ryan Howard Intern: Systems Testing Automation telligentsystems Exceptional Service. Predictable Results. www.telligent.com email: [EMAIL PROTECTED] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general