I been teaching myself Ruby for three months now and
I’ve needed very Little help until now. I’ve been
working with text files using strings, array’s, hash’s
and CSV all with Little problem
Now I’ve moved onto using the watir gem with no luck.
Unless I open www.yahoo.com or www.google.com I get
frame errors or the code will not exit. Am I just
missing something basic. Code same below.
Luis,
Out of curiosity, have you found much advantage to including the
“include Watir” line?
Since it pretty much only saves me having to type “Watir::”, and I
only type that once, I almost always omit the include.
Luis,
Out of curiosity, have you found much advantage to including the
“include Watir” line?
Since it pretty much only saves me having to type “Watir::”, and I
only type that once, I almost always omit the include.
–Kyle
That’s the only real advantage. Of course in a script this short it is
not very useful. But in a longer script you may save a little time.
____________________________________________________________________________________Ready
for the edge of your seat?
Check out tonight’s top picks on Yahoo! TV.
watir provides a nicer interface than useing ie/ole directly
You will also be able to run your code against firefox with only a
minimal number of changes.
When writing portable code, it is extremely helpful to include the full
namespace. I try to avoid using the include statement so that the code
is more portable and readable.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.