Hi,

I'm using watir ruby for my testing I have quite lot f script written for a 
website and sometimes I have test in different environment like UAT or DEV 
site. At the moment my 
setup method below are in the same file as my test scripts. 
@browser  = Waitr::Browser.new..... 
@browser.goto "https...."

I want to be able to change the goto website just one time instead going to 
each file to change it everytime. I have tried move the above code to a 
different file and use the require ''...." method in the test script file 
but it doesn't work. 

Any advice on how can to call the @browser.goto from another file? 

Thanks

   

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/74dc7e5e-6138-47ca-9422-9e2ee41f1e10n%40googlegroups.com.

Reply via email to