File: webdriver.sh

package info (click to toggle)
bibledit 5.0.994-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 251,308 kB
  • sloc: xml: 915,984; ansic: 228,302; cpp: 98,690; javascript: 46,971; sh: 5,026; makefile: 514; php: 69
file content (19 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

npm start &

webdriver-manager start 2> /dev/null &

sleep 20s
wdio _develop/wdio.config.js
EXIT_CODE=$?

FOREMAN_PID=$(pgrep foreman)
SELENIUM_PID=$(pgrep -f selenium-server-standalone)

kill -s SIGINT $FOREMAN_PID
kill -s SIGINT $SELENIUM_PID

echo "\n"

exit $EXIT_CODE