Skip to content

Instantly share code, notes, and snippets.

View Istenes's full-sized avatar

Niklas Istenes Istenes

View GitHub Profile
bonzo.create = function (node) {
// hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
return typeof node == 'string' && node !== '' ?
function () {
var parser = new DOMParser()
//Add try catch for DOMParseErrors
return parser.parseFromString(node, "text/html")
}() : isNode(node) ? [node.cloneNode(true)] : []
}
<html ng-app="myApp">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.min.js"></script>
<script type="text/javascript">
console.log("hello")
var app = angular.module("myApp", []);
app.value("user", {
name: "username",
country: "country",
phone: "phone"
node_modules/webdriverio/lib/runner.js:72
throw new Error('The plugin "' + pluginName + '" is not WebdriverIO compliant');
^
Error: The plugin "webdriverjs-angular" is not WebdriverIO compliant
at node_modules/webdriverio/lib/runner.js:72:31
at Array.forEach (native)
at process.<anonymous> (node_modules/webdriverio/lib/runner.js:68:45)
at emitTwo (events.js:87:13)
at process.emit (events.js:172:7)