我有以下代码,尽管我设置了profile_directory
Firefox webdriver仍然试图将设置存储在/tmp
文件夹中
profile = FirefoxProfile(profile_directory = '/home/sultan/profiles')
profile.set_preference('network.proxy.http', scheme);
profile.set_preference('network.proxy.http_port', self.proxy.get('port'));
例外代码:
^{pr2}$我做错了什么?或者需要为selenium添加特定的配置设置吗?在
我也有同样的问题。因为FF5没有“用户.js“在个人资料中->我们不必阅读它。在
打开selenium/webdriver/firefox/firefox_py.py剖面并在def\u read_existing_userjs(self)之后添加try except,如下所示:
相关问题 更多 >
编程相关推荐