simple-headless-chrome | Simple abstraction to use Chrome | UI Testing library
kandi X-RAY | simple-headless-chrome Summary
kandi X-RAY | simple-headless-chrome Summary
This is an abstraction to use a Headless version of Google Chrome in a very simple way. I was inspired by the next projects:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Browser event handler
- Construct a Tab .
- Creates a new Browser
- Evaluates an Array
- Inject a script
- inject remote script
- Inject this referenced function .
- the constructor
- Evaluates an expression on node
- Sets up handlers
simple-headless-chrome Key Features
simple-headless-chrome Examples and Code Snippets
Community Discussions
Trending Discussions on simple-headless-chrome
QUESTION
I am using Chrome stable 60 (https://chromedevtools.github.io/devtools-protocol/1-2/Page/) for headless. I need to be able to do this:
Navigate to page 1
Take screenshot1
Navigate to page 2 (after page 1 is done)
Take screenshot2
However, I can't see to call Page.navigate
twice because Page.loadEventFired
will pick up on the latest one.
I don't want to use Canary because it's so unstable (screenshot doesn't even work right). So I think Target
isn't an option (if it could be).
What is the best way to do url navigation in serial fashion like that?
I looked at https://github.com/LucianoGanga/simple-headless-chrome to see how they do it (await mainTab.goTo
) but can't seem to figure out yet.
ANSWER
Answered 2017-Aug-15 at 21:02The link here https://github.com/cyrus-and/chrome-remote-interface/issues/92 gave me some idea:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install simple-headless-chrome
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page