问题
This question already has an answer here:
- Difference between webdriver.firefox.marionette & webdriver.gecko.driver 3 answers
I don't fully understand the difference between geckodriver and marionette.
- Can anyone clarify the difference between them?
For example, when I use Selenium WebDriver to control a Firefox browser, I need a geckodriver binary to listen the WebDriver protocol from Selenium.
- Is Marionette the Firefox extension that actually drives Firefox?
回答1:
Selenium uses W3C Webdriver protocol to send requests to Geckodriver, which translates them and uses Marionette protocol to send them to Firefox
Selenium<--(W3C Webdriver)-->Geckodriver<---(Marionette)--->Firefox
来源:https://stackoverflow.com/questions/42956380/difference-between-geckodriver-and-marionette