Interacting with Element Attributes
Name | Spec Data Types | Description |
---|---|---|
attribute | optional Object of Key:Value |
Set attribute value |
<input type="text" id="info" value="" data-a="Value A" data-b="Value B">
SELECT css("#info[data-a]") as aval, css("#info[data-b]") as bval
FROM http://www.delven.io/test/execute.html EVENTFLOW
[
{
"by-css": "#info",
"attribute":
{
"data-a": "New Value A",
"data-b": "New Value B"
}
}
]
{
"aval":
{
"value": "New Value A"
},
"bval":
{
"value": "New Value B"
}
}