From: Martin Kociman Date: 2013-01-15T23:09:17+09:00 Subject: Ruby + Selenium: Reuse open browser session [HELP] People, I' am working with SeleniumDriver in ruby. I have a problem and need your help. I will explain the idea: I have 2 scripts in Ruby: LOGIN.rb and SCRIPTB.rb These scripts are executed in the next order: a. LOGIN.rb --> I call Selenium Server [selenium = Selenium::SeleniumDriver.new( remote_control_addr, remote_control_port , platform, url, timeout)]. b. After this, the browser (Firefox) is continuing OPEN. c. SCRIPT.rb --> I need reuse the browser (Firefox) to execute this script. My intention is execute many scripts in only one browser. I can't use methods and classes between the scripts, because is a limitation of my platform. The 'good new' is that I can pass variables between the two scripts. I was listening about selenium.get_cookie() and selenium.create_cookie("arg1","arg2") but I don't understand how to use between the two scripts. The other option is using SESSION_ID, but I don't understand how to set and reuse the variable between the two scripts. Someone could help me? Thanks for read the question and help my, Regards Martín -- Posted via http://www.ruby-forum.com/.