File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ Here's the command list:
134
134
* [ ` pause-on-error ` ] ( #pause-on-error )
135
135
* [ ` permissions ` ] ( #permissions )
136
136
* [ ` press-key ` ] ( #press-key )
137
+ * [ ` property ` ] ( #property )
137
138
* [ ` reload ` ] ( #reload )
138
139
* [ ` screenshot ` ] ( #screenshot )
139
140
* [ ` screenshot-comparison ` ] ( #screenshot-comparison )
@@ -1279,6 +1280,24 @@ press-key: 27 // Same but with an integer
1279
1280
press-key: ('Escape', 1000) // The keyup event will be send after 1000 ms.
1280
1281
```
1281
1282
1283
+ #### property
1284
+
1285
+ ** property** command allows to update an element's property. Example:
1286
+
1287
+ ```
1288
+ property: ("details", "open", "false")
1289
+ // Same but with a XPath:
1290
+ property: ("//details", "attribute-name", "attribute-value")
1291
+ ```
1292
+
1293
+ To set multiple properties at a time, you can use a JSON object:
1294
+
1295
+ ```
1296
+ property: ("details", {"open": "false", "another": "x"})
1297
+ // Same but with a XPath:
1298
+ property: ("//details", {"open": "false", "another": "x"})
1299
+ ```
1300
+
1282
1301
#### reload
1283
1302
1284
1303
** reload** command reloads the current page. Example:
You can’t perform that action at this time.
0 commit comments