These problems should now be fixed in version 2.0.1 Jarmo
On Aug 10, 6:29 pm, Jarmo Pertman <[email protected]> wrote: > Thanks. > > The next release will try to focus for Ruby 1.9.2. I suspect that this > problem is related with the browser.close problem in 1.9.2 too. > > Jarmo > > On Aug 9, 10:14 pm, Dmitriy Korobskiy <[email protected]> wrote: > > > > > > > > > On 7/27/11 11:02 AM, Jarmo Pertman wrote: > > > >>> Don't use Ruby 1.9.2 right now since it is related with other bugs > > >>> related > > >>> with 1.9.2. Didn't want to fix those at the moment to avoid even bigger > > >>> changes. > > >>> Jarmo > > > I found one regression where the code works in Watir 2.0.0.rc3/Ruby > > 1.8.x, but stops working in Ruby 1.9.x. > > Just want to report it, so you can add it to the list if it has not been > > reported before. BTW, it works in Watir 1.9.2/Ruby 1.9.x. > > > The regression is in links() collection and link() locators: they > > apparently stop working. The following code should > > dump a bunch of links. In Watir 2.0.0.rc3/1.9.x, links() collection is > > returned empty. > > ---------------- > > # Windows only > > # > > > require 'watir' > > > browser = Watir::IE.new_window > > browser.goto("http://google.com") > > if browser.url.include?("google.com") > > puts "Navigated to Google" > > end > > for link in browser.links > > puts "#{link.text} #{link.to_s}" > > end > > begin > > browser.close > > rescue => e > > puts "WARNING: Error in closing the > > browser:\n#{e.message}\n#{e.backtrace}" > > end > > ---------------- > > > -- > > DK > > AIM: DKroot1, Skype: DKroot -- 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]
