webdriverio 8.24.0 → 8.24.1
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.
|
@@ -105,7 +105,7 @@ export default function isElementDisplayed(element) {
|
|
|
105
105
|
}
|
|
106
106
|
// If the container's overflow is not hidden and it has zero size, consider the
|
|
107
107
|
// container to have non-zero dimensions if a child node has non-zero dimensions.
|
|
108
|
-
return
|
|
108
|
+
return [].some.call(element.childNodes, function (childNode) {
|
|
109
109
|
if (childNode.nodeType === Node.TEXT_NODE) {
|
|
110
110
|
return true;
|
|
111
111
|
}
|
|
@@ -136,7 +136,7 @@ export default function isElementDisplayed(element) {
|
|
|
136
136
|
return false;
|
|
137
137
|
}
|
|
138
138
|
// This element's subtree is hidden by overflow if all child subtrees are as well.
|
|
139
|
-
return
|
|
139
|
+
return [].every.call(element.childNodes, function (childNode) {
|
|
140
140
|
// Returns true if the child node is overflowed or otherwise hidden.
|
|
141
141
|
// Base case: not an element, has zero size, scrolled out, or doesn't overflow container.
|
|
142
142
|
// Visibility of text nodes is controlled by parent
|
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.24.
|
|
4
|
+
"version": "8.24.1",
|
|
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": "fbb42c9133bc0f181a143c59ddf7c0e630025e1b"
|
|
104
104
|
}
|