Hi All,
I wanted to seek your help in calling a function from another .RB file. Suppose I have a file one.rb which has following function:
require 'watir'
class Act
def Act.contains_html( input )
puts input
end
end
Now from driver.rb file I want to call this Act.contains_html( input ) function. I have following code:
require 'watir'
require "one.rb"
load "one.rb"
Act.contains_html("test")
This does not work please advice how do I get this working...
Thanks,
Vishal
Join SQAtester.com Community ---> http://www.sqatester.com/testersarea/joinus.htm
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
