Skip to content

Commit

Permalink
manually create a chromedriver session with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
rob committed Aug 23, 2024
1 parent 47ad1cc commit 072e381
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ jobs:
- name: Start chromedriver
run: |
set -x
touch ~/chromedriver.log
chromedriver --url-base=/wd/hub | sudo tee -a ~/chromedriver.log &
mkdir -p tmp/screenshots
touch tmp/screenshots/chromedriver.log
chromedriver --url-base=/wd/hub | sudo tee -a tmp/screenshots/chromedriver.log &
bin/lib/wait-for-it.sh localhost:9515 -- echo "Chromedriver is up!"
curl -i -XPOST http://localhost:9515/wd/hub/session \
-H 'Content-Type: application/json' \
-d '{"desiredCapabilities":{"browserName":"chrome"}}'
# sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit 072e381

Please sign in to comment.