Comments (3)
Could do something like:
const Chromy = require('chromy')
const chromy = new Chromy({visible: true})
async function main () {
const url = 'http://example.com/'
await chromy.start()
let status;
await chromy.client.Network.responseReceived((payload) => {
if (payload.response.url === url) {
status = payload.response.status
}
})
await chromy.goto('http://example.com/')
console.log(status)
await chromy.close()
}
main()
still waiting for OnetapInc/chromy#25
from differencify.
This feature will be added to chromy
from differencify.
This should be solved by now. Puppeteer will throw an error if:
- there's an SSL error (e.g. in case of self-signed certificates).
- target URL is invalid.
- the timeout is exceeded during navigation.
- the main resource failed to load.
from differencify.
Related Issues (20)
- Multiple teststoMatchSnapShots
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 7
- An in-range update of jimp is breaking the build 🚨 HOT 7
- A mismatchThreshold of zero will always fail.
- Tests pass even when error occurs in tests HOT 1
- An in-range update of eslint-plugin-jsx-a11y is breaking the build 🚨 HOT 2
- Running w/out Jest prevents consistent filenames HOT 4
- An in-range update of eslint is breaking the build 🚨 HOT 7
- An in-range update of babel-eslint is breaking the build 🚨 HOT 1
- An in-range update of jsdoc-to-markdown is breaking the build 🚨 HOT 1
- Differencify appends indexes to a unique generated snapshots' names. HOT 3
- Feature request: partial page comparison HOT 1
- An in-range update of eslint is breaking the build 🚨 HOT 5
- An in-range update of jsdoc-to-markdown is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 4
- Issue with mockRequest(); HOT 1
- An in-range update of babel-eslint is breaking the build 🚨 HOT 1
- An in-range update of jsdoc is breaking the build 🚨 HOT 1
- runtime issues with Puppeteer 8.0
- ReferenceError: GlobalOptions is not defined HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from differencify.