hello sir,
i am autpmating a web site that have different function page. i am making differnt modules for each function. the problem is that i have a login page Login.rb that has the below code :-
$IE = Watir::IE.new_process
module Login
def Login.login(url)
$IE.goto("url")
sleep (4)
$IE.maximize
#$IE.span(:class =>'menuLink', :text =>'Image').click
end
end
i need to access $IE variable to my other modules methods. the problem is that the other modules that are in different .rb file are not taking this variable. help me how sholud i declare this so that i can use it in all my modules throughout different files.