expecting an array or an iterable object but got [object Null] using playwright-webkit
See original GitHub issueCurrent behavior
I am experiencing a couple of errors just using the new browser experimental feature.
-
TypeError expecting an array or an iterable object but got [object Null] Because this error occurred during a
before each
hook we are skipping all of the remaining tests. -
TypeError expecting an array or an iterable object but got [object Null]
Desired behavior
Should run my tests without problems.
Test code to reproduce
https://github.com/JoanEsquivel/cypress-webkit
- Just install dependencies.
- Open the test runner
- Run for example:
- cypress/e2e/1-helloworld.ct.ts
- cypress/e2e/10-checkboxes.cy
Cypress Version
10.8.0
Node version
v16.13.0
Operating System
Windows 10
Debug Logs
TypeError
expecting an array or an iterable object but got [object Null]
View stack trace
Print to console
TypeError: expecting an array or an iterable object but got [object Null]
automation@http://uitestingplayground.com/__cypress/runner/cypress_runner.js:153782:63
@[native code]
Other
I want to say that this could be my mistake doing a wrong usage of typescript or some library. However, it is weird that this issue is only happening for webkit.
Also I see the same error from “bestu” in the discord channel General/general.
Appreciate your help.
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
sequelize error: Unhandled rejection TypeError: expecting an ...
javascript - sequelize error: Unhandled rejection TypeError: expecting an array or an iterable object but got [object Null] - Stack Overflow. ...
Read more >JoanMedia (@joan_media) / Twitter
Playwright is an amazing framework for automation E2E testing. ... expecting an array or an iterable object but got [object Null] using playwright-webkit...
Read more >FEED problem: expecting an array or an iterable object but got ...
var Client = require('instagram-private-api').V1; var device = new Client.Device('someuser'); var storage = new Client.
Read more >JSONArray (Tapestry API - 5.4.0)
The internal form is an object having get and opt methods for accessing the ... and adds all values fro the iterable to...
Read more >ES6's Many for Loops and Iterable Objects - Alan Storm
js, jQuery, lodash, etc.) have something like an each or foreach utility method/function that let you loop over objects and arrays without ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue has been fixed in #23442. Please look out for this fix in the next release of Cypress (October 25th)
@JoanEsquivel @nagash77 I’m also getting the same error although I’m not using
experimentalSessionAndOrigin
. Could this be a different error?I don’t have a repo to reproduce the error, but if needed I might try to build one if needed.
Btw, this error is not consistent for me, sometimes it does fails, sometimes it doesn’t.