M
Michal Sza
Hey,
I'm working on script using Watir class where I want to pass variable of
Watir class to another script and I'm getting an error saying "syntax of
the command is invalid', but when I pass any other variable it works
fine.
Here is my code
Working ex.
main.rb:
$test = 'test'
system("ruby \"popi.rb\" #{$test}")
popi.rb
puts $test unless $test.nil?
puts $ie unless $ie.nil?
Not working ex.
main.rb:
require 'watir'
$ie = Watir::IE.attachtitle,/Appli.*/)
system("ruby \"popi.rb\" #{$ie}")
popi.rb for this is the same.
Any ideas as to why it generates syntax error?
Thanks
I'm working on script using Watir class where I want to pass variable of
Watir class to another script and I'm getting an error saying "syntax of
the command is invalid', but when I pass any other variable it works
fine.
Here is my code
Working ex.
main.rb:
$test = 'test'
system("ruby \"popi.rb\" #{$test}")
popi.rb
puts $test unless $test.nil?
puts $ie unless $ie.nil?
Not working ex.
main.rb:
require 'watir'
$ie = Watir::IE.attachtitle,/Appli.*/)
system("ruby \"popi.rb\" #{$ie}")
popi.rb for this is the same.
Any ideas as to why it generates syntax error?
Thanks