Change Checkbox
From UBot Studio
(Difference between revisions)
(→Example) |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
This command is part of the [[Browser Commands|Browser Command]]. This command checks and uncheck a checkbox on a webpage. | This command is part of the [[Browser Commands|Browser Command]]. This command checks and uncheck a checkbox on a webpage. | ||
− | The command appears by clicking and dragging a checkbox into the scripting area. | + | |
+ | The command also appears by clicking and dragging a checkbox into the scripting area. | ||
== Example == | == Example == | ||
Line 23: | Line 24: | ||
</pre> | </pre> | ||
− | |||
− | Two options are presented in the command: Checked and Unchecked | + | [[File:check.jpg]] |
+ | |||
+ | |||
+ | Two options are presented in the command: Checked and Unchecked. | ||
+ | |||
+ | |||
+ | [[File:check0.jpg]] | ||
− | |||
Selecting the Checked option checks the checkbox on the page. | Selecting the Checked option checks the checkbox on the page. | ||
− | [[File: | + | |
+ | [[File:check1.jpg]] | ||
+ | |||
Selecting the Unchecked option unchecks the checkbox on the page. | Selecting the Unchecked option unchecks the checkbox on the page. | ||
+ | |||
<pre>load html("<!DOCTYPE html> | <pre>load html("<!DOCTYPE html> |
Latest revision as of 21:59, 15 September 2013
This command is part of the Browser Command. This command checks and uncheck a checkbox on a webpage.
The command also appears by clicking and dragging a checkbox into the scripting area.
[edit] Example
load html("<!DOCTYPE html> <html> <body> <form action=\"\"> <input type=\"checkbox\" name=\"vehicle\" value=\"Bike\">I have a bike<br> <input type=\"checkbox\" name=\"vehicle\" value=\"Car\">I have a car </form> </body> </html> ") change checkbox(<value="Bike">, "Checked")
Two options are presented in the command: Checked and Unchecked.
Selecting the Checked option checks the checkbox on the page.
Selecting the Unchecked option unchecks the checkbox on the page.
load html("<!DOCTYPE html> <html> <body> <form action=\"\"> <input type=\"checkbox\" name=\"vehicle\" value=\"Bike\">I have a bike<br> <input type=\"checkbox\" name=\"vehicle\" value=\"Car\">I have a car </form> </body> </html> ") change checkbox(<value="Bike">, "Unchecked")