webdriver.sh 286 B

12345678910111213141516171819
  1. #!/bin/bash
  2. npm start &
  3. webdriver-manager start 2> /dev/null &
  4. sleep 20s
  5. wdio _develop/wdio.config.js
  6. EXIT_CODE=$?
  7. FOREMAN_PID=$(pgrep foreman)
  8. SELENIUM_PID=$(pgrep -f selenium-server-standalone)
  9. kill -s SIGINT $FOREMAN_PID
  10. kill -s SIGINT $SELENIUM_PID
  11. echo "\n"
  12. exit $EXIT_CODE