selenium webdriver: v3.5.3geckodriver: 0.19firefox: v55。
Hi all, im currently learning to automate using Javaselenium.Im using selenium 3.5.3 and geckodriver to try and automate the Firefox browser and I am experiencing errors when trying to automate the Firefox driver. 我在 github 随后被要求提供壁虎司机日志。
作为一个初学者,我不知道我到底该怎么做......。
更具体地说,我如何指定moz:firefoxOptions来获取geckodriver日志信息?
这是一个从read me文件中提取的例子。
{
"capabilities": {
"alwaysMatch": {
"moz:firefoxOptions": {
"binary": "/usr/local/firefox/bin/firefox",
"args": ["-headless", "-profile", "/path/to/my/profile"],
"prefs": {
"dom.ipc.processCount": 8
},
"log": {
"level": "trace"
}
}
}
}
}
在readme中似乎没有解释我需要在哪里添加上面的内容来获取日志信息,因此不明白我需要做什么来生成查看geckodriver日志信息。
我试着更新这些内容,并把它添加到我的代码中,但是没有用,所以我猜测它要么是不正确的,要么是需要添加到别的地方。
有谁能提供一些简单的步骤,告诉我我需要做什么,我应该在哪里做,以获得我需要的日志信息?