I'd like to automate interactions with Metamask using Playwright and Python, but I don't understand exactly how the extension is controlled. When I open the browser the extension may or may not be configured. Each time the extension is requested, it opens a new page in the handler array.
How do I master the extension, load correctly, configure networks, open at the right time, know which handler is correct, approve or reject transactions and everything else?
Any full tutorial? Course? Book?
You can not interact with extensions in playwright. You could script windows tasks like clicking, waiting, pressing keys etc and run it with headfull browser mode.
How to use Playwright to interact with Metamask?