Search code examples
appiumnightwatch.jsappium-ios

Nightwatch/Appium configuration for testing browser on iOS emulator


I'm having trouble finding resources related to configuring Nightwatch to use Appium to test a mobile web app.

Is this even possible? Any direction is greatly appreciated.


Solution

  • It involves proper environment set-up and if anything is off you will have errors. I wrote up a full blog on testing iOS browsers with Nightwatch and Appium that is very recent (08/2016)

    http://www.shaneofalltrades.com/2016/08/26/Mobile-Web-Testing-Using-Nightwatchjs-part-1/

    If you have any issues, feel free to ask here or in the comments. Basically using the default Nightwatch Google test, so you can be sure it is not your tests failing, but configuration if anything. Here is my config example...

    "ios" : {
      "selenium_start_process": false,
      "selenium_port" : 4723,
      "selenium_host" : "127.0.0.1",
      "silent": true,
      "desiredCapabilities" : {
        "browserName" : "Safari",
        "platformName" : "iOS",
        "platformVersion" : "9.3",
        "deviceName" : "iPhone 6s Plus"
      }
    },
    

    But please read through and follow the documentation, there are a few unique steps that are important.