我正在尝试使用webdriverIO通过iOS模拟器运行浏览器测试。但是,它不是通过iOS模拟器运行浏览器,而是通过桌面版Safari运行它。我没有收到任何错误。我正在使用wdio测试运行器,这是在我的配置中。有什么建议吗?
capabilities: [
{
appiumVersion: '1.7.1',
deviceName: 'iPhone Simulator',
deviceOrientation: 'portrait',
platformversion: '9.0',
platformName: 'iOS',
port: '4723',
browserName: 'safari'
}
],
/
services: ['selenium-standalone', 'appium'],
appium: {
args: {
address: '127.0.0.1',
commandTimeout: '7200',
sessionOverride: true,
debugLogSpacing: true,
platformVersion: '9.0',
platformName: 'iOS',
showIosLog: true,
deviceName: 'iPhone',
nativeInstrumentsLib: true,
isolateSimDevice: true,
browserName: 'chrome'
}
},
答案 0 :(得分:1)
我最终得到了这个。我设置了我的配置:
capabilities: [
{
maxInstances: 1,
browserName: 'safari',
appiumVersion: '1.7.1',
automationName: 'Appium',
deviceName: 'iPhone 7 Plus',
deviceOrientation: 'portrait',
platformVersion: '11.0',
platformName: 'iOS'
}
-
services: ['selenium-standalone', 'appium'],
appium: {
args: {
address: '127.0.0.1',
commandTimeout: '7200',
sessionOverride: true,
debugLogSpacing: true,
showIosLog: true,
nativeInstrumentsLib: true,
isolateSimDevice: true,
}
},
port: 4723,