summaryrefslogtreecommitdiff
path: root/selenium/launch_selenium_test
blob: 750505e7cb8fefea3cf71d04ec243ffeded13ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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
if docker restart container_chrome > /dev/null;
then echo "Chrome container succesfully restarted";
fi

# 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