Change Attribute
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 [[ | + | This command is part of the [[Browser Commands|Browser Command]]. This command allows the changing of any attribute on an html element. |
This comes in handy when you need to change the value of a field or a drop down menu. | This comes in handy when you need to change the value of a field or a drop down menu. | ||
Revision as of 16:43, 7 December 2012
This command is part of the Browser Command. This command allows the changing of any attribute on an html element. This comes in handy when you need to change the value of a field or a drop down menu.
Example
navigate("http://ubotstudio.com/playground/simple-form", "Wait") wait(5) change attribute(<username field>, "value", "myusername")
Running the script will change the value of the field to the value "myusername". Changing the value of this field is the same as filling the field. Whatever is inside the field determines the field's value.