1

如何从welenium webdriver访问/获取 firefox 配置文件路径?

我似乎无法在此处的文档中找到它:https ://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_Capabilities.html

4

1 回答 1

2

好吧,为了获得个人资料,我最终做的是以下内容:

let capabilities = await this.firefox.getCapabilities();
let profile = capabilities.get('moz:profile');

然后,您可以访问时间剖面。

于 2018-10-31T12:36:01.313 回答