Do you have any links to documentation for automating FF?
WebDriver: https://developer.mozilla.org/en-US/docs/Web/WebDriver
Marionette: https://firefox-source-docs.mozilla.org/testing/marionette/I...
Puppeteer: https://www.infoq.com/news/2020/04/puppeteer-3-firefox-suppo...
I haven't used these tools, so I don't know which is "best" or why so many different tools are needed. :)