Automating Meta-Mask is no problem with desktop automation. You need to use computer vision, because browser extensions are no websites, and thus the classic Selenium IDE-style commands can not be used.
To get started, see How to Automate your Chrome Browser Extension App