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
I have a return from $ selector (let's call it variable X) which when I call X.elements() it indicates a list with 3 elements but I cannot iterate over it. Also, X.elements().length returns undefined.
Expected behavior
According to documentation an ElementWrapperList "exposes a method elements() which gives the actual list of element wrappers. It can be used to loop over the elements." So I should be able to iterate over it
Actual behavior
The return when I try to call a forEach is the following:
X.elements().forEach(function(value, key) {
console.log(key);
})
Thrown:
X.elements(...).forEach is not a function
Versions
node version v13.0.1
taiko version 1.0.3 (Chromium: 81.0.3994.0)
The text was updated successfully, but these errors were encountered:
I have a return from $ selector (let's call it variable X) which when I call X.elements() it indicates a list with 3 elements but I cannot iterate over it. Also, X.elements().length returns undefined.
Expected behavior
According to documentation an ElementWrapperList "exposes a method elements() which gives the actual list of element wrappers. It can be used to loop over the elements." So I should be able to iterate over it
Actual behavior
The return when I try to call a forEach is the following:
X.elements().forEach(function(value, key) {
console.log(key);
})
Thrown:
X.elements(...).forEach is not a function
Versions
The text was updated successfully, but these errors were encountered: