Hi guys I am new to watir . I am just working on basic concepts(Using Class ). when i run the script 2 , i got the output displaying two times. Can you please any one tell me any fault in my script
Script 1 ======== require 'rubygems' require 'win32ole' require 'watir' class MyClass def self.some_method puts 'something' end end MyClass.some_method Script 2 ======== require 'rubygems' require 'win32ole' require 'watir' require 'D:\Waltair scripts\My wokings in waltair\script1.rb' MyClass.some_method Output of script 2 is ================= something something -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general