Chromeless: Implement inject() and refresh()

Created on 26 Jul 2017  路  4Comments  路  Source: prisma-archive/chromeless

These are critical for my tests, and could very well be for others. It may not seem so important, but it is when actual pages don't matter. I test some of my libraries with a single instance on about:blank with inject(); refresh()'ing before each test.

https://github.com/stevenvachon/universal-url/blob/master/test.js#L179-L184

API feature

Most helpful comment

https://joelgriffith.github.io/navalia/Chrome/inject/
https://joelgriffith.github.io/navalia/Chrome/reload/

Navalia has had these for a while. Would love to hear feedback if they aren't working

All 4 comments

https://joelgriffith.github.io/navalia/Chrome/inject/
https://joelgriffith.github.io/navalia/Chrome/reload/

Navalia has had these for a while. Would love to hear feedback if they aren't working

So, like: .inject("js", "browser-built.js") & .inject("css", "custom.css")?

Is there a way to do this with .evaluate() ?

@bradoyler yes, but it requires fs, which is not nearly as clean.

Hello any progress on this one ?

Was this page helpful?
0 / 5 - 0 ratings