Skip to content

Commit e319bbf

Browse files
Add documentation for wait-for-size-false command
1 parent 42cb324 commit e319bbf

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

goml-script.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ Here's the command list:
243243
* [`wait-for-text`](#wait-for-text)
244244
* [`wait-for-text-false`](#wait-for-text-false)
245245
* [`wait-for-size`](#wait-for-size)
246+
* [`wait-for-size-false`](#wait-for-size-false)
246247
* [`wait-for-window-property`](#wait-for-window-property)
247248
* [`wait-for-window-property-false`](#wait-for-window-property-false)
248249
* [`write`](#write)
@@ -2253,7 +2254,7 @@ If you want to wait for all properties to have the expected values, take a look
22532254

22542255
#### wait-for-size
22552256

2256-
**wait-for-size** command wait for the given element(s) that either the "width" or the "height" (or both) have the expected value. Examples:
2257+
**wait-for-size** command waits for the given element(s) that either the "width" or the "height" (or both) have the expected value. Examples:
22572258

22582259
```
22592260
wait-for-size: ("button", {"width": 200, "height": 20})
@@ -2269,7 +2270,28 @@ wait-for-size: ("button", {"width": 200, "height": 20}, ALL)
22692270
wait-for-size: ("//button", {"width": 200, "height": 20}, ALL)
22702271
```
22712272

2272-
To be more exact, this command compares the "offsetWidth" and "offsetHeight", which include the content
2273+
To be more exact, this command compares the "offsetWidth" and "offsetHeight", which includes the content
2274+
size, the padding and the border.
2275+
2276+
#### wait-for-size-false
2277+
2278+
**wait-for-size-false** command waits for any of the given element(s) that either the "width" or the "height" (or both) not have the expected value. Examples:
2279+
2280+
```
2281+
wait-for-size-false: ("button", {"width": 200, "height": 20})
2282+
// Same with XPath
2283+
wait-for-size-false: ("//button", {"width": 200, "height": 20})
2284+
```
2285+
2286+
If you want to check that any of the elements matching the given selector do not have the expected value(s), use `ALL`:
2287+
2288+
```
2289+
wait-for-size-false: ("button", {"width": 200, "height": 20}, ALL)
2290+
// Same with XPath
2291+
wait-for-size-false: ("//button", {"width": 200, "height": 20}, ALL)
2292+
```
2293+
2294+
To be more exact, this command compares the "offsetWidth" and "offsetHeight", which includes the content
22732295
size, the padding and the border.
22742296

22752297
#### wait-for-text

0 commit comments

Comments
 (0)