In Firefox WebDriver there is function called install_addon which can install extensions on the runtime. By the runtime I mean when the WebDriver instance
install_addon