Skip to content
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

Chrome Headless Browserの使い方 #62

Open
awakia opened this issue Jul 1, 2017 · 0 comments
Open

Chrome Headless Browserの使い方 #62

awakia opened this issue Jul 1, 2017 · 0 comments

Comments

@awakia
Copy link
Owner

awakia commented Jul 1, 2017

https://developers.google.com/web/updates/2017/04/headless-chrome

に乗っている。

/usr/local/Caskroom/google-chrome/latest/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --disable-gpu --dump-dom file:///Users/awakia/src/github.com/awakia/headless-chrome/sample.html

という感じでローカルファイルは開くことが出来る。

デバッグする時は--dump-dom --remote-debugging-port=9222として
http://localhost:9222
を開くととりあえずなんか見れる。

実際操作をしたい時はDevTool Interfaceに従って操作する必要がある。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant