Commands:Send keys chosen

This command is used specifically for filling text into file input fields, as a means of getting around the lack of direct access to them. This command will not steal focus, and runs entirely in the background. To simulate typing on elements other than file fields, use send keys chosen field.

Occasionally a text box will be difficult to fill with a specific value. Usually text boxes that allow the user to browse their own computer or to upload files are “secure” in this way, and where one would normally use the “change chosen attribute” command with the “value” parameter, you will be required to use the “send keys chosen” command.