Hi,

I am trying to run my scripts either on IE or Firefox based on the setting.
when i run the script i am getting the following error. Kindly let me know
how to fix this.


>ruby firefoxex.rb
firefoxex.rb:6:in `<main>': undefined method `<<' for
#<Watir::Browser:0x50e50694 url="about:blank" title=""> (NoMethodError)
>Exit code: 1
########################################################################

require "rubygems"
require "watir-webdriver"

varBrowser = ':ie'  # Here i would like to pass whether my scripts to run
in IE or Firefox

browserIE = Watir::Browser.new << varBrowser

browserIE.goto "http://www.google.com/";

browserIE.a(:text => "Images").flash

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to