量角器 - MacO 上的 Microsoft Edge(无法自动化)
Protractor - Microsoft Edge on MacOs (Not able to automate)
大家好:我在 Protractor 中有一个项目,它有 4 个浏览器...让我们讲一个长篇故事。 Microsoft Edge 不在量角器中 运行。
我已经安装了 Microsoft Edge。
Microsoft Edge is up to date.
Version 83.0.478.54 (Official build) (64-bit)
这是我的 protractor.conf.js
的一部分
multiCapabilities: [{
browserName: 'chrome',
chromeOptions: {
args: ['--disable-gpu']
}},
{browserName: 'firefox',
'moz:firefoxOptions': {
args: ['--incognito']
}},
{browserName: 'safari',
'safari.options': {
args: ['--incognito']
}},
{browserName: 'MicrosoftEdge',
'edge.options': {
args: ['--incognito']
}}],
directConnect: false,
baseUrl: 'https://www.xxxxxx.com',
seleniumAddress: 'http://localhost:4444/wd/hub',
错误显示下一个:
[MicrosoftEdge #11] /Users/rxxxxxxxx/WebstormProjects/protractor_automation/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:546
[MicrosoftEdge #11] throw new ctor(message);
[MicrosoftEdge #11] ^
[MicrosoftEdge #11] SessionNotCreatedError: Unable to create new service: EdgeDriverService
[MicrosoftEdge #11] Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
[MicrosoftEdge #11] System info: host: 'XXXXXXXXXX', ip: 'XXX.XXX.XXX.XXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_221'
[MicrosoftEdge #11] Driver info: driver.version: unknown
...
[MicrosoftEdge #11] at processTicksAndRejections (internal/process/task_queues.js:97:5)
[MicrosoftEdge #11] From: Task: WebDriver.createSession()
....
[13:34:32] E/launcher - Runner process exited unexpectedly with error code: 1
我已经下载了 msededriver 并将其放在下一个文件夹中:
/Users/rxxxxxxxx/WebstormProjects/protractor_automation/node_modules/protractor/node_modules/webdriver-manager/selenium/msedgedriver
有人能帮帮我吗?
更新:
量角器版本:7.0.0
运行 Chromium Edge 浏览器的流程略有不同,常规边缘驱动程序不适用。
查看这篇文章 - 您需要下载特殊的 Chromium Edge 驱动程序并在功能中设置路径:
https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=javascript
根据Protractor Supported Browsers,Protractor 目前不支持 Microsoft Edge。
您可以向 Protractor Github 提出功能请求。
大家好:我在 Protractor 中有一个项目,它有 4 个浏览器...让我们讲一个长篇故事。 Microsoft Edge 不在量角器中 运行。
我已经安装了 Microsoft Edge。
Microsoft Edge is up to date.
Version 83.0.478.54 (Official build) (64-bit)
这是我的 protractor.conf.js
的一部分multiCapabilities: [{
browserName: 'chrome',
chromeOptions: {
args: ['--disable-gpu']
}},
{browserName: 'firefox',
'moz:firefoxOptions': {
args: ['--incognito']
}},
{browserName: 'safari',
'safari.options': {
args: ['--incognito']
}},
{browserName: 'MicrosoftEdge',
'edge.options': {
args: ['--incognito']
}}],
directConnect: false,
baseUrl: 'https://www.xxxxxx.com',
seleniumAddress: 'http://localhost:4444/wd/hub',
错误显示下一个:
[MicrosoftEdge #11] /Users/rxxxxxxxx/WebstormProjects/protractor_automation/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:546
[MicrosoftEdge #11] throw new ctor(message);
[MicrosoftEdge #11] ^
[MicrosoftEdge #11] SessionNotCreatedError: Unable to create new service: EdgeDriverService
[MicrosoftEdge #11] Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
[MicrosoftEdge #11] System info: host: 'XXXXXXXXXX', ip: 'XXX.XXX.XXX.XXX', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_221'
[MicrosoftEdge #11] Driver info: driver.version: unknown
...
[MicrosoftEdge #11] at processTicksAndRejections (internal/process/task_queues.js:97:5)
[MicrosoftEdge #11] From: Task: WebDriver.createSession()
....
[13:34:32] E/launcher - Runner process exited unexpectedly with error code: 1
我已经下载了 msededriver 并将其放在下一个文件夹中:
/Users/rxxxxxxxx/WebstormProjects/protractor_automation/node_modules/protractor/node_modules/webdriver-manager/selenium/msedgedriver
有人能帮帮我吗?
更新:
量角器版本:7.0.0
运行 Chromium Edge 浏览器的流程略有不同,常规边缘驱动程序不适用。
查看这篇文章 - 您需要下载特殊的 Chromium Edge 驱动程序并在功能中设置路径:
https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=javascript
根据Protractor Supported Browsers,Protractor 目前不支持 Microsoft Edge。
您可以向 Protractor Github 提出功能请求。