I am launching a website with a different functional page. I make different modules for each function. The problem is that I have a Login.rb login page that has the following code: -
$IE = Watir::IE.new_process
module Login
def Login.login(url)
$IE.goto("url")
sleep (4)
$IE.maximize
end
end
I need to access the IE variable for my other module methods. the problem is that other modules that are in another .rb file do not accept this variable. help me how sholud i declare this so that i can use it in all my modules in different files.
source
share