How to use Global variable from other file with select_value

6 views
Skip to first unread message

perg...@gmail.com

unread,
Oct 5, 2023, 6:59:48 AM10/5/23
to Watir General
Hi,

I want to use the global variable from another file like below but is not working:
require 'date.rb'

@browser.select_list(:id => 'StepThree_CoverStartDate_Value_Day').select_value($cover_date)

Can someome please advice how to use global variable in watir ruby?
Reply all
Reply to author
Forward
0 new messages