hi aidy, Watir::Simple has a different philosophy. you cant mix those simple methods with 'normal' watir scripts because of the missing ie instance you noticed the correct usage would be some like that:
include Watir::Simple new_browser_at "someurl" # @@browser will be initialized here assert_text_in_combobox_by_name 'criteria.countryId', '- Select -' --christian ________________________________ From: aidy rutter [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 3:29 PM To: [email protected] Subject: [Wtr-general] uninitialized class variable @@browser in Watir::Simple Hi, In Watir::Simple, do we need to replace the class varibale @@browser with the variable I have named the browser e.g. $ie = Watir::IE.new as when I am using assert_text_in_combobox_by_name(:name, 'criteria.countryId', '- Select -') I am receiving the exception "uninitialized class variable @@browser in Watir::Simple" cheers aidy _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
