User Tools

Site Tools


Sidebar

Software

input

Table of Contents

input


input - Perform actions on the html element <input>

Description

input("$attribute_search","$attribute_value")
input("$attribute_search","$attribute_value","$action")
input("$attribute_search","$attribute_value","$attribute_info")
input("$attribute_search","$attribute_value","$attribute_change","$new_value")

This function returns a string

Parameters

$attribute_search
The <input> attribute to search to identify the element
Attributes examples: “id”, “name”, “style”, …

$attribute_value
The value of the attribute to be found

$action
Action values:
“click” - Performs a click in the element
“focus” - Set the focus to the element

$attribute_info
The attribute you want to retrieve
Special attributes:
“innerhtml” - Gets the innerhtml of the element
“textcontent” - Gets the text content of the element

$attribute_change
The attribute to change the value

$new_value
The new value of the attribute to change

Examples

navigate("http://diaboliclabs.com/testpage")
sleep(5)
input("name","firstname","value","test123")
input("id","check1","click")
alert("Input")
input.txt · Last modified: 2019/12/17 12:13 (external edit)