When uploading files on a German computer we get the following exception
RAutomation::UnknownWindowException: Window with locator {:title=>/^choose
file( to upload)?|Elegir archivos para cargar$/i} doesn't exist or is not
visible!
We patched the file
…gems\watir-classic-3.3.0\lib\watir-classic\dialogs\file_field.rb
like this and it works.
def open_button
file_upload_window.button(:value => /&Open|&Abrir|.&ffnen/)
end
def cancel_button
file_upload_window.button(:value => /Cancel|Abbrechen/)
end
def file_upload_window
@window ||= RAutomation::Window.new(:title => /^choose file( to
upload)?|Elegir archivos para cargar|(Datei zum Hochladen.*)$/i)
end
Please include this in the projects source code or find another solution.
---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-classic/issues/50
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development