lib/watir/container.rb in watir-1.8.1 vs lib/watir/container.rb in watir-1.9.0.rc1

- old
+ new

@@ -267,12 +267,17 @@ # browser.file_field(:id, 'up_1') # access the file upload field with an ID of up_1 # browser.file_field(:name, 'upload') # access the file upload field with a name of upload # browser.file_field(:index, 2) # access the second file upload on the page (1 based, so the first field is accessed with :index,1) # def file_field(how, what=nil) - FileField.new(self, how, what) + FileUpload.new(self, how, what) end - + + def javascript_dialog(opts={}) + JavascriptDialog.new(opts) + end + alias :dialog :javascript_dialog + # this is the main method for accessing the file_fields iterator. It returns a FileFields object # # Typical usage: # # browser.file_fields.each { |f| puts f.to_s } # iterate through all the file fields on the page