Coder Social home page Coder Social logo

yukinying / chrome-headless-travis-build Goto Github PK

View Code? Open in Web Editor NEW
25.0 5.0 8.0 20 KB

Continuously building chrome headless shell and docker image.

Home Page: https://travis-ci.org/yukinying/chrome-headless-travis-build

License: MIT License

Shell 100.00%
chrome headless-chrome

chrome-headless-travis-build's Introduction

chrome-headless-travis-build

Build Status

Docker Pulls

This repository contains the script to build headless shell (part of chrome), and associates with a Travis build that build headless shell (remotely).

chrome-headless-travis-build's People

Contributors

hbakhtiyor avatar yukinying avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chrome-headless-travis-build's Issues

Remove sudo privilege

That may be possible by adding a headless user and remove the --no-sandbox argument. Extra efforts would be required to see if it would cause another issues.

How to use with Selenium for headless browsing?

How do we use this with Selenium for headless browsing? I tried this via ipython:

from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

driver = webdriver.Remote(command_executor='http://localhost:9222/', desired_capabilities=DesiredCapabilities.CHROME)

but received this error:

WebDriverException: Message:

Connecting chrome to headless_shell on 9222

Hi Albert,
Wow! thanks for this and chrome-headless-browser-docker. This is more a question than an issue:

  1. Have you had any luck connecting chrome to headless_shell? to see what's going on in the headless tab.
  2. Have you integrated selenium/chromedriver with headless_shell (or know whether this is possible?)

I've successfully run chrome-headless-browser-docker and connected to it on http://localhost:9222/ using chrome running in the host. This works in both windows and ubuntu hosts.

I have not managed to connect using chrome-headless however. I can get as far as the start page i.e. Inspectable WebContents but when I click on the link to try see whats going on in a headless tab I get a 404, whereas with chrome-headless-browser-docker I see the page as expected.

getting warnings on start

$ docker run -i -t --rm --name=chrome-headless -p=127.0.0.1:9222:9222 yukinying/chrome-headless

[0324/170440.952159:WARNING:resource_bundle.cc(338)] locale_file_path.empty() for locale 
[0324/170441.354799:WARNING:resource_bundle.cc(338)] locale_file_path.empty() for locale 
[0324/170442.135361:WARNING:resource_bundle.cc(338)] locale_file_path.empty() for locale 

is it not correctly built?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.