I have a doubt between using Mocha or Jasmine frameworks. While running appium with protractor the generated code is like that
"use strict";
var wd = require("wd");
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
chai.use(chaiAsPromised);
chai.should();
chaiAsPromised.transferPromiseness = wd.transferPromiseness;
var desired = {
"appium-version": "1.0",
platformName: "iOS",
platformVersion: "9.3",
deviceName: "iPad Air",
app: "/Users/qaquod/Library/Developer/Xcode/DerivedData/UICatalog-cmojeenhzhptpidtliwxnmpxjxzg/Build/Products/Debug-iphonesimulator/UICatalog.app",
};
var browser = wd.promiseChainRemote("0.0.0.0", 4723);
browser.init(desired).then(function() {
return browser
.elementByXPath("//UIAApplication[1]/UIAWindow[2]/UIAScrollView[1]/UIAScrollView[1]/UIAWebView[1]/UIAStaticText[1]").sendKeys("RET02")
.elementByXPath("//UIAApplication[1]/UIAWindow[2]/UIAButton[2]").sendKeys("USER")
.elementByXPath("//UIAApplication[1]/UIAWindow[2]/UIAScrollView[1]/UIAScrollView[1]/UIAWebView[1]/UIAStaticText[2]").sendKeys("USER")
.fin(function() {
return browser.quit();
});
}).done();
chai and chaiAsPromised are causing errors in protractor scripts, shall i change to jasmine framework or in my case it will be better with Mocha framework?
Thanks