Selenium geckodriver打开Firefox开发者版,而不是普通版

Selenium geckodriver打开Firefox开发者版,而不是普通版,selenium,geckodriver,selenium-firefoxdriver,Selenium,Geckodriver,Selenium Firefoxdriver,我正在使用pytest框架和selenium来测试我的代码 Firefox.__init__(self, executable_path=geckodriver_path, firefox_profile=self.profile, service_log_path=common_strings.geckodriver_log_path) 我只找到了关于如何使Selenium open developer edition代替普通版的解决方案,但在我的情况下,我想要相反的解决方案。 出于某种原因

我正在使用pytest框架和selenium来测试我的代码

Firefox.__init__(self, executable_path=geckodriver_path, firefox_profile=self.profile, service_log_path=common_strings.geckodriver_log_path)
我只找到了关于如何使Selenium open developer edition代替普通版的解决方案,但在我的情况下,我想要相反的解决方案。 出于某种原因,Selenium打开了开发者版,我实际上需要普通版来测试我的代码

Firefox.__init__(self, executable_path=geckodriver_path, firefox_profile=self.profile, service_log_path=common_strings.geckodriver_log_path)

有什么建议或想法吗?

您在哪里找到了让Selenium open developer edition代替普通版的方法?@DebanjanB当我手动将Mozilla注册表中的“PathToExe”键更改为FF普通版的路径时,Selenium会按预期打开普通版。当然,这个解决方案非常肮脏,我尝试它只是为了测试我的代码。我不明白是什么让Selenium打开了FF开发者版。有什么想法吗?我还试图删除开发人员版本,但在这种情况下,它没有帮助,我被赶出了测试。您在哪里找到了让Selenium open developer edition代替普通版的方法?@DebanjanB当我手动将Mozilla注册表中的键“PathToExe”更改为FF普通版的路径时,Selenium按预期打开普通版。当然,这个解决方案非常肮脏,我尝试它只是为了测试我的代码。我不明白是什么让Selenium打开了FF开发者版。有什么想法吗?我还试图删除开发人员版本,但在这种情况下,它没有帮助,我被赶出了测试。