MetaMask Web Automation
What this test does
- install and load Metamask extension
- setup(import passphrase, enter password) Metamask account
- turn on test network
- switch to ropsten network
- add new network(network name, chainId, rpc url, etc)
- connect a web3 app to metamask
- import Custom Token
- and lot more ...
Setup
- create a virtual env
- add the required env vars
- download chromedriver (https://chromedriver.chromium.org/downloads)
chromedriver version should be the same as the chrome installed on your PC
RUN
py app.py
Environment (virtual env)
export SITE_URL = ""
export SECRET_RECOVERY_PHRASE = ""
export META_MASK_PASSWORD = ""
export CONTRACT_ADDRESS = ""
Demo
(https://youtu.be/XeiNACWNXYE)