From zeljko.filipin at gmail.com Tue Jun 12 04:35:35 2007 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Tue, 12 Jun 2007 10:35:35 +0200 Subject: [SafariWatir-general] Safari for Windows Message-ID: I just installed Safari for Windows (http://www.apple.com/safari/). Do you plan to support it? Zeljko -- ZeljkoFilipin.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/safariwatir-general/attachments/20070612/cd4110fe/attachment.html From kcampos at bioiq.com Tue Jun 19 19:12:28 2007 From: kcampos at bioiq.com (Kyle Campos) Date: Tue, 19 Jun 2007 16:12:28 -0700 Subject: [SafariWatir-general] goto method gives "NoMethodError" Message-ID: Hi, I'm just setting up safariwatir. I have the gem installed and have just a basic test to make sure things are working. Unfortunately I'm getting a NoMethodError when goto is called, it still browses to the URL, but the script bails: NoMethodError: private method 'split' called for nil:NilClass method handle_client_redirect in scripter.rb at line 490 method page_load in scripter.rb at line 470 method times in scripter.rb at line 467 method page_load in scripter.rb at line 467 method navigate_to in scripter.rb at line 110 method goto in safariwatir.rb at line 451 method login in login.rb at line 19 at top level in login.rb at line 24 Here's my test: require 'rubygems' require 'safariwatir' require 'yaml' # Read in config @config = YAML::load(IO.read('config.yml')) puts("host is #{@config[:host]}") # Setup safari = Watir::Safari.new def safari.login goto("http://www.yahoo.com") end begin safari.login end Kyle-Computer-2% gem list | grep safari safariwatir (0.2.3) Any help would be appreciated. Thanks -Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/safariwatir-general/attachments/20070619/24ed8d4b/attachment.html From jdonagher at gmail.com Tue Jun 19 21:36:54 2007 From: jdonagher at gmail.com (John Donagher) Date: Tue, 19 Jun 2007 18:36:54 -0700 Subject: [SafariWatir-general] goto method gives "NoMethodError" In-Reply-To: References: Message-ID: On 6/19/07, Kyle Campos wrote: > Hi, > > I'm just setting up safariwatir. I have the gem installed and have just a > basic test to make sure things are working. Unfortunately I'm getting a > NoMethodError when goto is called, it still browses to the URL, but the > script bails: > > NoMethodError: private method 'split' called for nil:NilClass > Are you running the safari 3 beta, or 2.x? John From kcampos at bioiq.com Tue Jun 19 22:10:16 2007 From: kcampos at bioiq.com (Kyle Campos) Date: Tue, 19 Jun 2007 19:10:16 -0700 Subject: [SafariWatir-general] goto method gives "NoMethodError" In-Reply-To: References: Message-ID: safari 3 beta....uh oh...I sense trouble. -Kyle On 6/19/07, John Donagher wrote: > > On 6/19/07, Kyle Campos wrote: > > Hi, > > > > I'm just setting up safariwatir. I have the gem installed and have just > a > > basic test to make sure things are working. Unfortunately I'm getting a > > NoMethodError when goto is called, it still browses to the URL, but the > > script bails: > > > > NoMethodError: private method 'split' called for nil:NilClass > > > > Are you running the safari 3 beta, or 2.x? > > John > _______________________________________________ > SafariWatir-general mailing list > SafariWatir-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/safariwatir-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/safariwatir-general/attachments/20070619/b962f46c/attachment-0001.html From dave at obtiva.com Tue Jun 19 23:42:29 2007 From: dave at obtiva.com (Dave Hoover) Date: Tue, 19 Jun 2007 23:42:29 -0400 Subject: [SafariWatir-general] goto method gives "NoMethodError" In-Reply-To: References: Message-ID: <11c8704e0706192042j58a0d005u3bb3da7bc0ec188f@mail.gmail.com> > > Are you running the safari 3 beta, or 2.x? > > safari 3 beta....uh oh...I sense trouble. I just installed safari 3 beta and I'm seeing the exact same error. It appears to be a problem with the Apple Event bridge (rb-appscript) ... or at least it's a problem somewhere between there and Safari itself because rb-appscript is no longer allowing me to pass values back to Ruby from the JavaScript I'm executing in Safari. I'll ping Hamish Sanderson, the author of rb-appscript, to see if he has any insight. --Dave From dave at obtiva.com Wed Jun 20 08:07:54 2007 From: dave at obtiva.com (Dave Hoover) Date: Wed, 20 Jun 2007 08:07:54 -0400 Subject: [SafariWatir-general] goto method gives "NoMethodError" In-Reply-To: <11c8704e0706192042j58a0d005u3bb3da7bc0ec188f@mail.gmail.com> References: <11c8704e0706192042j58a0d005u3bb3da7bc0ec188f@mail.gmail.com> Message-ID: <11c8704e0706200507o3e819f70yf40933ff14ead550@mail.gmail.com> On 6/19/07, Dave Hoover wrote: > I'll ping Hamish Sanderson, the author of rb-appscript, to see if he > has any insight. It appears that Safari 3 has broken 'do JavaScript', which is SafarWatir's lifeline to driving Safari. Arg. --Dave ---------- Forwarded message ---------- From: has Date: Jun 20, 2007 7:37 AM Subject: Re: Safari 3 beta To: Dave Hoover Hi Dave, how's things? > I'm getting reports (and I've confirmed the behavior on my MBP) that > SafariWatir breaks when people upgrade to Safari 3 beta. > > I tracked the problem down to the do_JavaScript method. I can confirm that 'do JavaScript' is broken in Safari 3. (Tsk... you'd think they'd have unit tests for such basic stuff as this.) You should file a bug report on it - I've just put one in, but the more the merrier. Cheers, has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org http://appscript.sourceforge.net/objc-appscript.html From dave at obtiva.com Sat Jun 23 11:14:59 2007 From: dave at obtiva.com (Dave Hoover) Date: Sat, 23 Jun 2007 10:14:59 -0500 Subject: [SafariWatir-general] goto method gives "NoMethodError" In-Reply-To: <11c8704e0706200507o3e819f70yf40933ff14ead550@mail.gmail.com> References: <11c8704e0706192042j58a0d005u3bb3da7bc0ec188f@mail.gmail.com> <11c8704e0706200507o3e819f70yf40933ff14ead550@mail.gmail.com> Message-ID: <11c8704e0706230814s6e6f00d5v6d997cdd847a05b5@mail.gmail.com> I've released a new version of SafariWatir (0.2.4), which should play nice with Safari 3. On 6/20/07, Dave Hoover wrote: > On 6/19/07, Dave Hoover wrote: > > I'll ping Hamish Sanderson, the author of rb-appscript, to see if he > > has any insight. > > It appears that Safari 3 has broken 'do JavaScript', which is > SafarWatir's lifeline to driving Safari. Arg. > > --Dave > > ---------- Forwarded message ---------- > From: has > Date: Jun 20, 2007 7:37 AM > Subject: Re: Safari 3 beta > To: Dave Hoover > > > Hi Dave, how's things? > > > I'm getting reports (and I've confirmed the behavior on my MBP) that > > SafariWatir breaks when people upgrade to Safari 3 beta. > > > > I tracked the problem down to the do_JavaScript method. > > I can confirm that 'do JavaScript' is broken in Safari 3. (Tsk... > you'd think they'd have unit tests for such basic stuff as this.) You > should file a bug report on it - I've just put one in, but the more > the merrier. > > Cheers, > > has > -- > http://appscript.sourceforge.net > http://rb-appscript.rubyforge.org > http://appscript.sourceforge.net/objc-appscript.html > From kcampos at bioiq.com Mon Jun 25 18:10:08 2007 From: kcampos at bioiq.com (Kyle Campos) Date: Mon, 25 Jun 2007 15:10:08 -0700 Subject: [SafariWatir-general] goto method gives "NoMethodError" In-Reply-To: <11c8704e0706230814s6e6f00d5v6d997cdd847a05b5@mail.gmail.com> References: <11c8704e0706192042j58a0d005u3bb3da7bc0ec188f@mail.gmail.com> <11c8704e0706200507o3e819f70yf40933ff14ead550@mail.gmail.com> <11c8704e0706230814s6e6f00d5v6d997cdd847a05b5@mail.gmail.com> Message-ID: Cool this looks to have solved that problem. Thanks so much! -Kyle On 6/23/07, Dave Hoover wrote: > > I've released a new version of SafariWatir (0.2.4), which should play > nice with Safari 3. > > On 6/20/07, Dave Hoover wrote: > > On 6/19/07, Dave Hoover wrote: > > > I'll ping Hamish Sanderson, the author of rb-appscript, to see if he > > > has any insight. > > > > It appears that Safari 3 has broken 'do JavaScript', which is > > SafarWatir's lifeline to driving Safari. Arg. > > > > --Dave > > > > ---------- Forwarded message ---------- > > From: has > > Date: Jun 20, 2007 7:37 AM > > Subject: Re: Safari 3 beta > > To: Dave Hoover > > > > > > Hi Dave, how's things? > > > > > I'm getting reports (and I've confirmed the behavior on my MBP) that > > > SafariWatir breaks when people upgrade to Safari 3 beta. > > > > > > I tracked the problem down to the do_JavaScript method. > > > > I can confirm that 'do JavaScript' is broken in Safari 3. (Tsk... > > you'd think they'd have unit tests for such basic stuff as this.) You > > should file a bug report on it - I've just put one in, but the more > > the merrier. > > > > Cheers, > > > > has > > -- > > http://appscript.sourceforge.net > > http://rb-appscript.rubyforge.org > > http://appscript.sourceforge.net/objc-appscript.html > > > _______________________________________________ > SafariWatir-general mailing list > SafariWatir-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/safariwatir-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/safariwatir-general/attachments/20070625/50e41b6f/attachment.html From kcampos at bioiq.com Mon Jun 25 20:11:56 2007 From: kcampos at bioiq.com (Kyle Campos) Date: Mon, 25 Jun 2007 17:11:56 -0700 Subject: [SafariWatir-general] Bug report: unable to set text_field with numeric value Message-ID: TextField class does a .length on the value passed and that fails if the value is numeric. If you pass browser.text_field(:name, "example").set("1182816195") you will get the following error: test_login(Acceptance): NoMethodError: undefined method `length' for 1182816195:Bignum method set in safariwatir.rb at line 299 method instance_eval in scripter.rb at line 158 method highlight in scripter.rb at line 158 method set in safariwatir.rb at line 297 method enroll_user in qatest_controller.rb at line 48 method test_login in login.rb at line 23 ------------ class TextField < InputElement def set(value) @scripter.focus(self) @scripter.highlight(self) do clear_text_input 299> value.length.times do |i| append_text_input(value[i, 1]) end end @scripter.blur(self) end -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/safariwatir-general/attachments/20070625/cb08a63a/attachment.html From kcampos at bioiq.com Tue Jun 26 14:22:25 2007 From: kcampos at bioiq.com (Kyle Campos) Date: Tue, 26 Jun 2007 11:22:25 -0700 Subject: [SafariWatir-general] Unable to select from select lists with a blank default value Message-ID: I'm seeing an issue where I'm unable to select an option from select lists that have a blank default value. Here's the select code: None of the following watir code will work: @browser.select_list(:name, "user[gender]").select_value("M") @browser.select_list(:name, "user[gender]").select_value("M=Male") @browser.select_list(:name, "user[gender]").select("Male") I don't get an error it just moves along as if it selected, but it doesn't do anything. Similar code with select lists in the same form that don't have a blank default value work fine. Any ideas? -Kyle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/safariwatir-general/attachments/20070626/2a646317/attachment.html