You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
polish(webdriverio): expose contentVisibilityAuto, opacityProperty and visibilityProperty to waitForDisplayed (#14659)
* polish(webdriverio): expose contentVisibilityAuto, opacityProperty and visibilityProperty to waitForDisplayed
* polish(webdriverio): expose contentVisibilityAuto, opacityProperty and visibilityProperty to waitForDisplayed
* polish(webdriverio): expose contentVisibilityAuto, opacityProperty and visibilityProperty to waitForDisplayed
* `true` to check if the element is within the viewport. false by default.
6
+
*/
7
+
withinViewport?: boolean
8
+
/**
9
+
* `true` to check if the element content-visibility property has (or inherits) the value auto,
10
+
* and it is currently skipping its rendering. `true` by default.
11
+
* @default true
12
+
*/
13
+
contentVisibilityAuto?: boolean
14
+
/**
15
+
* `true` to check if the element opacity property has (or inherits) a value of 0. `true` by default.
16
+
* @default true
17
+
*/
18
+
opacityProperty?: boolean
19
+
/**
20
+
* `true` to check if the element is invisible due to the value of its visibility property. `true` by default.
21
+
* @default true
22
+
*/
23
+
visibilityProperty?: boolean
24
+
}
25
+
3
26
/**
4
27
*
5
28
* Wait for an element for the provided amount of milliseconds to be displayed or not displayed.
@@ -18,6 +41,9 @@ import type { WaitForOptions } from '../../types.js'
18
41
* @param {String=} options.timeoutMsg if exists it overrides the default error message
19
42
* @param {Number=} options.interval interval between checks (default: `waitforInterval`)
20
43
* @param {Boolean=} options.withinViewport set to `true` to wait until element is displayed within viewport (default: `false`)
44
+
* @param {Boolean=} options.contentVisibilityAuto set to `true` to check if the element content-visibility property has (or inherits) the value auto, and it is currently skipping its rendering. `true` by default.
45
+
* @param {Boolean=} options.opacityProperty set to `true` to check if the element opacity property has (or inherits) a value of 0. `true` by default.
46
+
* @param {Boolean=} options.visibilityProperty set to `true` to check if the element is invisible due to the value of its visibility property. `true` by default.
21
47
* @return {Boolean} true if element is displayed (or doesn't if flag is set)
0 commit comments