You seem to be calling MyClass.some_method from both scripts. Delete the
call from the first script.

-c


On Mon, Feb 8, 2010 at 5:37 AM, ayyappa <[email protected]> wrote:

> 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 [email protected]
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> [email protected]<watir-general%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to