Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webdriverIO and iOS simulator browser testing

I am attempting to run browser testing through the iOS simulator using webdriverIO. But instead of running the browser through the iOS simulator, it is just running it through the desktop version of Safari. I am not getting any errors. I am using the wdio test runner and this is in my config. Any suggestions?

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'
    }
},
like image 256
mcnollster Avatar asked Dec 06 '25 00:12

mcnollster


1 Answers

I ended up getting this to work. I had set my config like so:

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,
like image 164
mcnollster Avatar answered Dec 07 '25 15:12

mcnollster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!