From: Joel Pearson Date: 2013-01-26T05:58:17+09:00 Subject: Re: Ruby + Selenium: Reuse open browser session [HELP] If you're using multiple scripts you should be using "require" or "require_relative" to put them together so they can access each other's objects. You can build them into the same Class or Module even when they are in seperate files. As your scripts are executing in the same environment and are able to pass objects between them, you should look at how Ruby can build a single object from multiple files. File1: ________ class MyClass def some_method #Do stuff end end ________ File2: ________ class MyClass def some_other_method #Do more stuff end end ________ File3: ________ require 'File1' require 'File2' class_instance = MyClass.new class_instance.some_method class_instance.some_other_method ________ -- Posted via http://www.ruby-forum.com/.