if __name__ == '__main__':
driver=webdriver.Firefox(executable_path=r'/home/saurabh/Saurabh/LearnPython/Automation/geckodriver');
运行上述代码后,我得到一个错误:
selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities
Tags:
确保你指向的是
\path\to\FirefoxPortable\App\Firefox64\firefox.exe
而不仅仅是\path\to\FirefoxPortable\FirefoxPortable.exe
我认为您的代码本身没有任何重大错误
以下是您自己的代码,其中有一个简单的调整可以打开Mozilla Firefox浏览器:
相关问题 更多 >
编程相关推荐