wdio-wait-for / element/sizeOfElementToBe
▸ sizeOfElementsToBe(selectorOrElement
, expectedSize
): () => Promise
<boolean
>
A condition for checking size of element with given selector
example
browser.waitUntil(sizeOfElementsToBe('button', { width: 200, height: 200 }));
Name | Type | Description |
---|---|---|
selectorOrElement |
StringOrElement |
The selector or element to check |
expectedSize |
Object |
The selector to check |
expectedSize.height |
number |
- |
expectedSize.width |
number |
- |
fn
An expected condition that returns a promise representing whether the element size.
▸ (): Promise
<boolean
>
A condition for checking size of element with given selector
example
browser.waitUntil(sizeOfElementsToBe('button', { width: 200, height: 200 }));
Promise
<boolean
>
An expected condition that returns a promise representing whether the element size.