我无法在“Internet Explorer”浏览器中运行“量角器测试脚本”。
我在命令下运行。 webdriver-manager更新--ie --versions.standalone 3.4.0 --versions.ie 3.4.0
我的配置文件代码如下。
exports.config = {
allScriptsTimeout: 15000,
seleniumAddress:'http://localhost:4444/wd/hub',
capabilities:
{
'browserName': 'internet explorer',
'platform' : 'ANY',
'version' : '11'
},
suites: {
heropage: ['e2e/hero/hero.e2e-spec.ts'],
dashboardpage : ['e2e/dashboard/dashboard.e2e-spec.ts']
},
baseUrl: 'http://localhost:4200/',
// directConnect : true,
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 50000,
includeStackTrace: true
},
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
},
}
我按照http://elgalu.github.io/2014/run-protractor-against-internet-explorer-vm/
更改了“互联网选项”中Internet Explorer浏览器的所有必需设置我收到以下错误
Failed: JavaScript error in async script. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 26 milliseconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'BHUVISDESK-16', ip: '192.168.0.109', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0',
java.version: '1.8.0_144'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{se:ieOptions={browserAttachTimeout=0.0, ie.enableFullPageScreenshot=true, enablePersistentHover=true, i
e.forceCreateProcessApi=false, ie.forceShellWindowsApi=false, ignoreZoomSetting=false, ie.fileUploadDialogTimeout=3000.0,
ie.useLegacyFileUploadDialogHandling=false, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0.0, ie.
browserCommandLineSwitches=, requireWindowFocus=false, initialBrowserUrl=http://localhost:39545/, ignoreProtectedModeSetti
ngs=false, enableElementCacheCleanup=true}, browserName=internet explorer, pageLoadStrategy=normal, javascriptEnabled=true
, version=11, platform=WINDOWS, unexpectedAlertBehaviour=dismiss}]
Session ID: 01bf3915-d549-421b-a6f1-771e17c78cc7
任何人都可以帮助我在这个过程中犯了什么错误