Instead you of removing the checks you can just use `Element#send_keys`: ```ruby browser.file_field.send_keys(path) ```
Addiotionally, you can make WebDriver recognize local files and if you set up the "file detector". The local file will then be uploaded to the node through grid, saved to disk, and then used in the file field. ```ruby driver = Selenium::WebDriver.for :remote, :url => "..." driver.file_detector = lambda do |args| path = args.first path if File.exist?(path.to_s) end ``` --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/175#issuecomment-12144536
_______________________________________________ Wtr-development mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-development
