webdriverio 8.23.2 → 8.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,7 +70,7 @@ export default function isElementDisplayed(element) {
|
|
|
70
70
|
// if document-fragment, skip it and use element.host instead. This happens
|
|
71
71
|
// when the element is inside a shadow root.
|
|
72
72
|
// window.getComputedStyle errors on document-fragment.
|
|
73
|
-
if (element instanceof window.ShadowRoot) {
|
|
73
|
+
if ('ShadowRoot' in window && element instanceof window.ShadowRoot) {
|
|
74
74
|
element = element.host;
|
|
75
75
|
}
|
|
76
76
|
const computedStyle = window.getComputedStyle(element);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriverio",
|
|
3
3
|
"description": "Next-gen browser and mobile automation test framework for Node.js",
|
|
4
|
-
"version": "8.23.
|
|
4
|
+
"version": "8.23.3",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"optional": true
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "7a5d7baa075b3f0adc3a9615e5b23f0c27ab4d62"
|
|
104
104
|
}
|