-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: support for Chrome headless #521
Comments
Very useful tutorial with example on how to capture screenshots with Chrome headless: https://developers.google.com/web/updates/2017/04/headless-chrome Also useful: https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a |
+1 For this, I'm considering using wraith but am unsure about the future-proofness if it's not compatible with headless chrome. |
+1 Really looking forward to a headless Chrome Integration |
+1 Please add headless Chrome Integration, because current PhantomJS had very outdated CSS support! Thanks! |
Hi! I managed to add partial and straightforward support for headless Chrome. Please go ahead and test my solution: saulirajala@988b705 Some notices about my solution:
You can test the solution by overwriting the files of your Wraith. In my computer they are located in /usr/local/lib/ruby/gems/2.3.0/gems/wraith-4.0.1 |
Hey there, I was having some issues integrating the posted solution on OS X and I also wanted to run this as part of our CI I made a patch here with Chrome support which has JS before capture support, and works with Chrome on any OS. It has capabilities of full screen screenshots as well as selector only screenshots. GitHub Fork & Branch: https://github.com/shmargum/wraith/tree/chromedriver This relies on Chrome, which you already probably have installed if you are reading this. |
This issue can be closed since the Chrome support has been merged. |
Chrome support seems to work by using |
@saulirajala @shmargum Guys how did you approach logging in scripts? I'm blocked as the before_capture hooks do not work for me. This is what I use:
I'm getting an error that the document unloaded when waiting for the click() function result. Any ideas how to do this? I might be able to force an auth cookie to the session but unsure how? |
Still an issue |
Is the original request still an issue, or can this be closed? |
Hi,
There is any plan to add Chrome headless [1] support? Having a real headless browser like Chrome could help a lot to keep our wraith tests up-to-date with new HTML\JS\CSS features.
Also consider that PhantomJS developer stepped down [2]. This could stall PhantomJS development.
Thanks,
Nicholas
References:
[1] https://www.chromestatus.com/features/5678767817097216
[2] https://groups.google.com/forum/#!topic/phantomjs/9aI5d-LDuNE
The text was updated successfully, but these errors were encountered: