Change File Field
From UBot Studio
(Difference between revisions)
(Created page with "This command is part of the Action Commands. This command allows the changing of any attribute on an html element. This comes in handy when you need to change the value of...") |
|||
Line 1: | Line 1: | ||
− | This command is part of the [[Action Commands]]. This command | + | This command is part of the [[Action Commands]]. This command selects a file from your system and places it into the selected file field on the page. |
− | This | + | This includes fields or Choose File buttons on a webpage that requires you to upload a file. |
== Example == | == Example == |
Revision as of 00:26, 8 November 2012
This command is part of the Action Commands. This command selects a file from your system and places it into the selected file field on the page. This includes fields or Choose File buttons on a webpage that requires you to upload a file.
Example
navigate("http://cgi-lib.berkeley.edu/ex/fup.html", "Wait") change file field(<name="upfile">, "C:\\Users\\LillyT\\Downloads\\myfile.txt")
The command will allow you to browse your system for a file, and use the element selector to select the Choose File button.
Running the script fills the file field with the file provided in the change file field command.