From dave.hoover at gmail.com Sun Dec 3 19:38:11 2006 From: dave.hoover at gmail.com (Dave Hoover) Date: Sun, 3 Dec 2006 18:38:11 -0600 Subject: [SafariWatir-general] Watir reports with screenshots using RSpec Message-ID: <11c8704e0612031638n7eb06b0q27755cb748a668ee@mail.gmail.com> Aslak is doing something interesting stuff with screen capture on failing Watir tests... http://blog.aslakhellesoy.com/articles/2006/12/02/getting-screenshots-from-watir And he's using SafariWatir. From work at ashleymoran.me.uk Thu Dec 21 09:54:05 2006 From: work at ashleymoran.me.uk (Ashley Moran) Date: Thu, 21 Dec 2006 14:54:05 +0000 Subject: [SafariWatir-general] Selecting from popup menus doesn't trigger Javascript Message-ID: <1C4F7205-5FC7-42E5-AADD-AF667F1C0F64@ashleymoran.me.uk> Hi I'm just trying out safariwatir but I've found what looks like a problem. I tried the following script: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto('http://www.gr8cardeal.co.uk/') browser.select_list(:name, "manufacturer").select_value("BMW") But because it doesn't fire the JavaScript to populate the models, you can't then select one in the list below. Can this be done? Ashley From dave at obtiva.com Thu Dec 21 11:24:36 2006 From: dave at obtiva.com (Dave Hoover) Date: Thu, 21 Dec 2006 10:24:36 -0600 Subject: [SafariWatir-general] Selecting from popup menus doesn't trigger Javascript In-Reply-To: <1C4F7205-5FC7-42E5-AADD-AF667F1C0F64@ashleymoran.me.uk> References: <1C4F7205-5FC7-42E5-AADD-AF667F1C0F64@ashleymoran.me.uk> Message-ID: <11c8704e0612210824g5684ddefg806141bb26340f4@mail.gmail.com> Yes, that is a problem. SafariWatir isn't firing the JavaScript onchange event. I'll get that in the next release. Thanks! On 12/21/06, Ashley Moran wrote: > Hi > > I'm just trying out safariwatir but I've found what looks like a > problem. I tried the following script: > > require 'rubygems' > require 'safariwatir' > > browser = Watir::Safari.new > browser.goto('http://www.gr8cardeal.co.uk/') > browser.select_list(:name, "manufacturer").select_value("BMW") > > But because it doesn't fire the JavaScript to populate the models, > you can't then select one in the list below. Can this be done? > > Ashley > > _______________________________________________ > SafariWatir-general mailing list > SafariWatir-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/safariwatir-general > From work at ashleymoran.me.uk Thu Dec 21 12:53:48 2006 From: work at ashleymoran.me.uk (Ashley Moran) Date: Thu, 21 Dec 2006 17:53:48 +0000 Subject: [SafariWatir-general] Selecting from popup menus doesn't trigger Javascript In-Reply-To: <11c8704e0612210824g5684ddefg806141bb26340f4@mail.gmail.com> References: <1C4F7205-5FC7-42E5-AADD-AF667F1C0F64@ashleymoran.me.uk> <11c8704e0612210824g5684ddefg806141bb26340f4@mail.gmail.com> Message-ID: On 21 Dec 2006, at 16:24, Dave Hoover wrote: > Yes, that is a problem. SafariWatir isn't firing the JavaScript > onchange event. I'll get that in the next release. > > Thanks! Cool. Just tried something on my machine and had to abandon it and send it to someone on Windows. We have loads of JavaScript popups so its a bit of a killer. I wasn't sure if it was impossible because Safari just doesn't fire JS when you control it with AppleScript. Also, is HTTP authentication possible? That's something we use on one site (and might make more use of now REST is taking off). Ashley From dave at obtiva.com Sun Dec 24 02:15:09 2006 From: dave at obtiva.com (Dave Hoover) Date: Sun, 24 Dec 2006 01:15:09 -0600 Subject: [SafariWatir-general] Selecting from popup menus doesn't trigger Javascript In-Reply-To: References: <1C4F7205-5FC7-42E5-AADD-AF667F1C0F64@ashleymoran.me.uk> <11c8704e0612210824g5684ddefg806141bb26340f4@mail.gmail.com> Message-ID: <11c8704e0612232315h5a50ca8fm80f078ed68703c3f@mail.gmail.com> Merry Christmas! On 12/21/06, Ashley Moran wrote: > On 21 Dec 2006, at 16:24, Dave Hoover wrote: > > > Yes, that is a problem. SafariWatir isn't firing the JavaScript > > onchange event. I'll get that in the next release. I've released an update that includes support for firing onChange events. http://rubyforge.org/frs/?group_id=1912&release_id=8606 It also slows the browser down just a tad so it behaves like IE Watir ... use set_fast_speed to get back to let it go as fast as it can. > Cool. Just tried something on my machine and had to abandon it and > send it to someone on Windows. We have loads of JavaScript popups so > its a bit of a killer. I wasn't sure if it was impossible because > Safari just doesn't fire JS when you control it with AppleScript. If you can send me a URL and an example of the Watir code that's not working for you, I'll get it working. > Also, is HTTP authentication possible? That's something we use on > one site (and might make more use of now REST is taking off). Anything is possible, especially on the Mac. There is a lot of Watir that I still haven't implemented, so if you need something, just speak up. The squeaky wheel will get the grease, especially if you provide a URL and some Watir code.