Last active
January 4, 2019 20:45
-
-
Save rafaelrpbelo/ce97db14be506258f9c0fd1327c6c869 to your computer and use it in GitHub Desktop.
chromedriver in docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Env var | |
export DISPLAY=:0 | |
# Dependências | |
apt-get install xvfb chromedrive | |
# Configuração do Driver | |
options = { | |
desired_capabilities: { | |
chromeOptions: { | |
args: %w[headless disable-gpu no-sandbox] | |
} | |
} | |
} | |
# Para executar, usar: | |
`xvfb-run -a <command>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: https://gitlab.com/rafaelrpbelo/capybara-docker