marmelab / gremlins.js

Monkey testing library for web apps and Node.js
https://marmelab.com/blog/2020/06/02/gremlins-2.html
MIT License
9.03k stars 426 forks source link

Bug: gremlins is not defined in some page #182

Open guojiahuiEmily opened 2 years ago

guojiahuiEmily commented 2 years ago

the bookmarklet method workd well but can't work in below webs:

https://fashion.sina.com.cn/ https://www.163.com/

VM263:1 Uncaught ReferenceError: gremlins is not defined at HTMLScriptElement.callback (:1:38) callback @ VM263:1 load (async) (anonymous) @ VM263:1 (anonymous) @ VM263:1 DevTools failed to load source map: Could not load content for https://unpkg.com/gremlins.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE 10Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure element ''. This request was automatically upgraded to HTTPS, For more information see

darshandp007 commented 1 year ago

Also not worked for below sites:

Getting error in browser console

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'strict-dynamic' *.1worldsync.com *.buywith.com *.cloudinary.com *.cnetcontent.com *.developer.walmart.com *.flix360.com *.flix360.io *.ksckreate.net *.px-cloud.net *.salsify.com *.syndigo.cloud *.syndigo.com *.talkshop.live *.wal.co *.zeekit.me assets-jpcust.jwpsrv.com assets.optiwise.ai beacon.walmart.com cc.cs.1worldsync.com ccsprodus1.blob.core.windows.net cdn.cs.1worldsync.com cdn.quantummetric.com cdn.richcontext.com connect.facebook.net content.jwplatform.com d3nkfb7815bs43.cloudfront.net d3np41mctoibfu.cloudfront.net drfdisvc.walmart.com i5.walmartimages.com ls.chatid.com maps.googleapis.com media.flixcar.com media.flixfacts.com media.sku.ninja qa.zeekit.walmart.com rackcdn.com salsify-ecdn.com ssl.p.jwpcdn.com ws.cnetcontent.com wss://api.talkshop.live www.ezdia.com www.recaptcha.net zeekit.me zeekit.walmart.com 'nonce-uWxtmglkxJ3eupYU'". Either the 'unsafe-inline' keyword, a hash ('sha256-ogmagGRBQjXPgiVFj/vsc0GixzyLWDnd685/Qfa0RLc='), or a nonce ('nonce-...') is required to enable inline execution.

Racheljia1989 commented 8 months ago

hi,have u solved this problem?I'm waiting for your advice.