korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

Firefox.close method raises exception #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using firewatir 1.1 on Mac osx 10.5 and firefox 2.0.0.6 and running the
following script results in an exception.

My ruby version is: ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]

The script is a modified version of the sample one presented on the
"Firewatir" wiki page:

#Include the FireWatir file.
require 'rubygems'  
gem 'firewatir'
require 'firewatir'

#include the FireWatir Module.
include FireWatir

ff=Firefox.new
#Open Google
ff.goto("http://www.google.com")

#Put your search term. 
ff.text_field(:name,"q").set("battlehorse")

#Click Search button.
ff.button(:name,"btnG").click

#Wait a bit
sleep 5

#Close the browser.
ff.close

The raised exception is: 
/usr/local/lib/ruby/gems/1.8/gems/firewatir-1.1/./firewatir.rb:351:in
`close': undefined method `join' for nil:NilClass (NoMethodError)

Original issue reported on code.google.com by battlehorse@gmail.com on 5 Nov 2007 at 10:06

GoogleCodeExporter commented 9 years ago

Original comment by ang...@gmail.com on 5 Nov 2007 at 10:21

GoogleCodeExporter commented 9 years ago
Fixed. Get latest from SVN and confirm.

Original comment by ang...@gmail.com on 5 Nov 2007 at 10:39

GoogleCodeExporter commented 9 years ago
Confirmed using latest svn. Thanks.

Original comment by battlehorse@gmail.com on 5 Nov 2007 at 11:37