带有配置文件的量角器--elementExplorer

protractor --elementExplorer with configuration file

我想尝试使用 --elementExplorer 选项看看我能用 browser.manage().logs() 做什么。

传递--elementExplorer时可以指定一个.conf文件吗?我希望使用 loggingPrefs 设置定义 multiCapabilities,让我以编程方式与控制台日志交互。

说不定对你有帮助。 Element explore 将忽略您的规范,不设置您的框架(例如 jasmine、mocha、cucumber),并且只允许您传入 1 种功能,但会遵守配置中的所有其他参数。 https://github.com/angular/protractor/blob/master/docs/debugging.md#testing-out-protractor-interactively