Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.
/ chropro Public archive

Chrome debugging protocol client for Java

Notifications You must be signed in to change notification settings

nla/chropro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chropro

This library is no longer maintained. Try chrome-devtools-java-client or ChromeDevToolsClient instead.

Java client library for the Chrome Debugging Protocol. The client is code generated from Chromium's JSON protocol description.

See Renderer.java in the included thumbnailer webapp for an example of usage.

Usage with Chrome --headless mode

Download a Linux Chrome snapshot

cd chrome-linux

# Set chrome-sandbox setuid root (alternatively live dangerously with --no-sandbox)
mv chrome_sandbox chrome-sandbox
sudo chown root chrome-sandbox
sudo chmod 4755 chrome-sandbox

# Fire up Chrome in headless mode
./chrome --headless --disable-gpu --remote-debugging-port=9292 &

# Run the example webapp
./bin/chropro-webapp

Usage with headless_shell

See build instructions

headless_shell --remote-debugging-port=9292 &
./bin/chropro-webapp

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.