Hello,
we are currently developing a product where we also need to interact with MetaMask. For e2e testing, we want to work with Playwright. Unfortunately, interacting with MetaMask is not that easy. That’s why my question is how one could simplify this process and not have to work with MetaMask via the GUI. For example, creating a wallet, switching networks, and handling requests.
Thank you very much.
PS: Sorry, I’m new to this topic, so I really appreciate any help 
Hi @ItsTimetoforget -
Where are you running into issues? Have you checked out the MetaMask Developer Docs?
Are you a developer?
Hey, thanks for the quick response. Yes, I had tried to get into it. The problem is that we already need to interact with the extension in part to simulate the user. That’s why I’m asking if, for example, there is an API to control the extension.
(Unfortunately, I can’t share the link to our GitHub repo, but the project is called “aquafier-js” and there you’ll find the Playwright workflow.)
These are our tests or rather the GitHub workflow for them. The issue we have is that interacting with MetaMask is always very unstable.
Got it , thanks for clarifying. Out of curiosity, are you just driving the extension directly with Playwright, or are you also trying out any of the MetaMask E2E helper libraries like Web3 libraries | MetaMask developer documentation ?
Hey, thanks for the quick reply and sorry for my late response. Unfortunately, I’m not sure how I can intercept an MM request. My goal is to set up an end-to-end test. Do you have any experience with how MetaMask behaves under xvfb? Because everything works fine on our local machines, but in the GitHub Action it causes problems.
Thanks a lot 
Yes, we interact directly with MetaMask. Just as if a user were clicking 