summaryrefslogtreecommitdiff
path: root/docker/selenium/launch_selenium_test
blob: b222e66234a5a7de0b910c16c9687778b5d3d9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# update wallet and pack extension
(cd $HOME/wallet-webex \
 && git pull \
 && ./configure \
 && make \
 && xvfb-run chromium --pack-extension $HOME/wallet-webex)

eval $(docker-machine env)

# Get fresh image
docker restart container_chrome

# Give time to container to get fully operational
sleep 2

# call python3 selenium script
python3 $HOME/wallet-webex/selenium/withdraw_buy.py \
  --ext=$HOME/ext.crx \
  --remote=http://$(docker-machine ip):4444/wd/hub