我如何告诉 selenium 使用某些命令行选项启动 firefox?

How can I tell selenium to start firefox with certain commandline options?

我正在使用自定义 firefox 二进制文件和 selenium,它依赖于特定的命令行参数。

如何告诉 selenium 在执行 firefox 二进制文件时使用这些参数?

哎呀,好像有个方法:FirefoxBinary.addCommandLineOptions()

这可能就是答案...