Skip to content

Commit 5a7311f

Browse files
Add documentation for within-iframe command
1 parent 9e28910 commit 5a7311f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

goml-script.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ Here's the command list:
246246
* [`wait-for-size-false`](#wait-for-size-false)
247247
* [`wait-for-window-property`](#wait-for-window-property)
248248
* [`wait-for-window-property-false`](#wait-for-window-property-false)
249+
* [`within-iframe`](#within-iframe)
249250
* [`write`](#write)
250251
* [`write-into`](#write-into)
251252

@@ -2400,6 +2401,17 @@ wait-for-window-property-false: ({"key": "value", "key2": "value2"}, [ENDS_WITH,
24002401

24012402
If you want to wait for all properties to have the expected value, take a look at [`wait-for-window-property`](#wait-for-window-property).
24022403

2404+
#### within-iframe
2405+
2406+
**within-iframe** commands moves the context inside the provided `<iframe>` selector. Inside it, all selectors are relative to the `iframe`, same if you use `go-to`. Examples:
2407+
2408+
```
2409+
within-iframe: ("#iframe", block {
2410+
// We try to click on an element inside the `#iframe` element.
2411+
click: "#element"
2412+
})
2413+
```
2414+
24032415
#### write
24042416

24052417
**write** command sends keyboard inputs on the currently focused element. Examples:

0 commit comments

Comments
 (0)