On 1/24/06, Paatsch, Bernd <[EMAIL PROTECTED]> wrote:
Yes.
Is it possible to have one global variable across multiple files?
Yes.
In the example below "$ie" is the global variable in the file " open.rb".
File: Login:
#Includes
require 'watir' # the watir controller
include Watir
require 'open'
require 'Login' #login includeFile: open.rb:
def start #open the IE browser
$ie = IE.new
end#call start method...
start
$ie.goto(logIN.url)
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
