【问题标题】:webdriverIO and iOS simulator browser testingwebdriverIO和iOS模拟器浏览器测试
【发布时间】:2017-11-02 19:09:37
【问题描述】:

我正在尝试使用 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'
    }
},

【问题讨论】:

    标签: selenium selenium-webdriver safari webdriver webdriver-io


    【解决方案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,
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-30
      • 1970-01-01
      • 2016-09-26
      • 2023-03-06
      • 1970-01-01
      • 1970-01-01
      • 2010-12-28
      • 1970-01-01
      相关资源
      最近更新 更多