firefox webdriver显示错误消息无法加载firefox配置文件代码如下
当我开始执行firefox驱动程序时,我收到以下错误消息 “您的firefox配置文件无法加载,可能丢失或无法访问” 问候firefox webdriver显示错误消息无法加载firefox配置文件代码如下,firefox,Firefox,当我开始执行firefox驱动程序时,我收到以下错误消息 “您的firefox配置文件无法加载,可能丢失或无法访问” 问候 PP在ubuntu中使用cmd使用这些命令 sudo chown-R nirdesh:nirdesh./.mozilla/ sudo chown-R nirdesh:nirdesh./.cache/ File F= new File("C:\\Users\\pc\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles");
PP在ubuntu中使用cmd使用这些命令
sudo chown-R nirdesh:nirdesh./.mozilla/
sudo chown-R nirdesh:nirdesh./.cache/
File F= new File("C:\\Users\\pc\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles");
FirefoxProfile p = new FirefoxProfile(F);
WebDriver driver = new FirefoxDriver(p);