At Intelligrape we face many challenges while developing web-applications. One of the small challenge was to test the web pages that contains file input field <input type=”File”>(to upload files). After few hours drilling with Canoo webtest plugin I decided to use the new fabulous plugin, Grails functional Testing by Marc Palmer (http://www.grails.org/Grails+Functional+Testing).
The syntax for setting value for the file input field is
Let me explain you with an example:
Following component’s HTML is
The name of the file input field is FileInputField.The code for setting value/path will be
any kind of suggestions and comments are welcome……