{"action":"created","comment":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/comments/57857811","id":57857811,"diff_hunk":"@@ -24,7 +24,36 @@ module.exports = {\n       },\n       assertion : function(passed, result, expected, msg, abortOnFailure) {\n         test.equals(passed, true);\n-        test.equals(result, null);\n+        test.equals(result, 'not present');\n+        test.equals(expected, 'not present');\n+        test.equals(msg, 'Testing if element <.test_element> is not present.');\n+        test.equals(abortOnFailure, true);\n+        test.done();\n+      }\n+    };\n+    Api.init(client);\n+    var m = Api.createAssertion('elementNotPresent', assertionFn, true, client);\n+    m._commandFn('.test_element');\n+  },\n+\n+  'elementNotPresent assertion passed when exceptions are passsed' : function(test) {\n+    var assertionFn = require('../../../'+BASE_PATH + '/api/assertions/elementNotPresent.js');\n+    var client = {\n+      options : {},\n+      locateStrategy : 'css selector',\n+      api : {\n+        elements : function(using, selector, callback) {\n+          test.equals(selector, '.test_element');\n+          test.equals(using, 'css selector');\n+          callback({\n+            status : -1,\n+            value : (new Error())","path":"tests/src/assertions/testElementNotPresent.js","position":28,"original_position":28,"commit_id":"74f23f355f90c0940c535ecf0caee1613e742cfd","original_commit_id":"74f23f355f90c0940c535ecf0caee1613e742cfd","user":{"login":"beatfactor","id":419506,"avatar_url":"https://avatars.githubusercontent.com/u/419506?v=3","gravatar_id":"","url":"https://api.github.com/users/beatfactor","html_url":"https://github.com/beatfactor","followers_url":"https://api.github.com/users/beatfactor/followers","following_url":"https://api.github.com/users/beatfactor/following{/other_user}","gists_url":"https://api.github.com/users/beatfactor/gists{/gist_id}","starred_url":"https://api.github.com/users/beatfactor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beatfactor/subscriptions","organizations_url":"https://api.github.com/users/beatfactor/orgs","repos_url":"https://api.github.com/users/beatfactor/repos","events_url":"https://api.github.com/users/beatfactor/events{/privacy}","received_events_url":"https://api.github.com/users/beatfactor/received_events","type":"User","site_admin":false},"body":"this should be a JSON stringified object, in this case it's `null` I believe.","created_at":"2016-03-30T09:11:51Z","updated_at":"2016-03-30T09:11:51Z","html_url":"https://github.com/nightwatchjs/nightwatch/pull/836#discussion_r57857811","pull_request_url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836","_links":{"self":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/comments/57857811"},"html":{"href":"https://github.com/nightwatchjs/nightwatch/pull/836#discussion_r57857811"},"pull_request":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836"}}},"pull_request":{"url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836","id":57983395,"html_url":"https://github.com/nightwatchjs/nightwatch/pull/836","diff_url":"https://github.com/nightwatchjs/nightwatch/pull/836.diff","patch_url":"https://github.com/nightwatchjs/nightwatch/pull/836.patch","issue_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/836","number":836,"state":"open","locked":false,"title":"Fix edge elementNotPresent","user":{"login":"peter-mouland","id":1727939,"avatar_url":"https://avatars.githubusercontent.com/u/1727939?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-mouland","html_url":"https://github.com/peter-mouland","followers_url":"https://api.github.com/users/peter-mouland/followers","following_url":"https://api.github.com/users/peter-mouland/following{/other_user}","gists_url":"https://api.github.com/users/peter-mouland/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-mouland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-mouland/subscriptions","organizations_url":"https://api.github.com/users/peter-mouland/orgs","repos_url":"https://api.github.com/users/peter-mouland/repos","events_url":"https://api.github.com/users/peter-mouland/events{/privacy}","received_events_url":"https://api.github.com/users/peter-mouland/received_events","type":"User","site_admin":false},"body":"as with #716 this pr keeps in with `elementPresent` logic.  The test has been added on the basis on the comment within that PR too.\r\n\r\nI have tested this in BrowserStack on multiple browsers and updated the status to match real output (-1)","created_at":"2016-02-02T13:01:14Z","updated_at":"2016-03-30T09:11:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bce23cefc9ee2143be96e4d833d52255c8fc56aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836/commits","review_comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836/comments","review_comment_url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/836/comments","statuses_url":"https://api.github.com/repos/nightwatchjs/nightwatch/statuses/74f23f355f90c0940c535ecf0caee1613e742cfd","head":{"label":"peter-mouland:fix-edge-elementNotPresent","ref":"fix-edge-elementNotPresent","sha":"74f23f355f90c0940c535ecf0caee1613e742cfd","user":{"login":"peter-mouland","id":1727939,"avatar_url":"https://avatars.githubusercontent.com/u/1727939?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-mouland","html_url":"https://github.com/peter-mouland","followers_url":"https://api.github.com/users/peter-mouland/followers","following_url":"https://api.github.com/users/peter-mouland/following{/other_user}","gists_url":"https://api.github.com/users/peter-mouland/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-mouland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-mouland/subscriptions","organizations_url":"https://api.github.com/users/peter-mouland/orgs","repos_url":"https://api.github.com/users/peter-mouland/repos","events_url":"https://api.github.com/users/peter-mouland/events{/privacy}","received_events_url":"https://api.github.com/users/peter-mouland/received_events","type":"User","site_admin":false},"repo":{"id":50919007,"name":"nightwatch","full_name":"peter-mouland/nightwatch","owner":{"login":"peter-mouland","id":1727939,"avatar_url":"https://avatars.githubusercontent.com/u/1727939?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-mouland","html_url":"https://github.com/peter-mouland","followers_url":"https://api.github.com/users/peter-mouland/followers","following_url":"https://api.github.com/users/peter-mouland/following{/other_user}","gists_url":"https://api.github.com/users/peter-mouland/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-mouland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-mouland/subscriptions","organizations_url":"https://api.github.com/users/peter-mouland/orgs","repos_url":"https://api.github.com/users/peter-mouland/repos","events_url":"https://api.github.com/users/peter-mouland/events{/privacy}","received_events_url":"https://api.github.com/users/peter-mouland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peter-mouland/nightwatch","description":"Automated testing and continous integration framework based on node.js and selenium webdriver","fork":true,"url":"https://api.github.com/repos/peter-mouland/nightwatch","forks_url":"https://api.github.com/repos/peter-mouland/nightwatch/forks","keys_url":"https://api.github.com/repos/peter-mouland/nightwatch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peter-mouland/nightwatch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peter-mouland/nightwatch/teams","hooks_url":"https://api.github.com/repos/peter-mouland/nightwatch/hooks","issue_events_url":"https://api.github.com/repos/peter-mouland/nightwatch/issues/events{/number}","events_url":"https://api.github.com/repos/peter-mouland/nightwatch/events","assignees_url":"https://api.github.com/repos/peter-mouland/nightwatch/assignees{/user}","branches_url":"https://api.github.com/repos/peter-mouland/nightwatch/branches{/branch}","tags_url":"https://api.github.com/repos/peter-mouland/nightwatch/tags","blobs_url":"https://api.github.com/repos/peter-mouland/nightwatch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peter-mouland/nightwatch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peter-mouland/nightwatch/git/refs{/sha}","trees_url":"https://api.github.com/repos/peter-mouland/nightwatch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peter-mouland/nightwatch/statuses/{sha}","languages_url":"https://api.github.com/repos/peter-mouland/nightwatch/languages","stargazers_url":"https://api.github.com/repos/peter-mouland/nightwatch/stargazers","contributors_url":"https://api.github.com/repos/peter-mouland/nightwatch/contributors","subscribers_url":"https://api.github.com/repos/peter-mouland/nightwatch/subscribers","subscription_url":"https://api.github.com/repos/peter-mouland/nightwatch/subscription","commits_url":"https://api.github.com/repos/peter-mouland/nightwatch/commits{/sha}","git_commits_url":"https://api.github.com/repos/peter-mouland/nightwatch/git/commits{/sha}","comments_url":"https://api.github.com/repos/peter-mouland/nightwatch/comments{/number}","issue_comment_url":"https://api.github.com/repos/peter-mouland/nightwatch/issues/comments{/number}","contents_url":"https://api.github.com/repos/peter-mouland/nightwatch/contents/{+path}","compare_url":"https://api.github.com/repos/peter-mouland/nightwatch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peter-mouland/nightwatch/merges","archive_url":"https://api.github.com/repos/peter-mouland/nightwatch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peter-mouland/nightwatch/downloads","issues_url":"https://api.github.com/repos/peter-mouland/nightwatch/issues{/number}","pulls_url":"https://api.github.com/repos/peter-mouland/nightwatch/pulls{/number}","milestones_url":"https://api.github.com/repos/peter-mouland/nightwatch/milestones{/number}","notifications_url":"https://api.github.com/repos/peter-mouland/nightwatch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peter-mouland/nightwatch/labels{/name}","releases_url":"https://api.github.com/repos/peter-mouland/nightwatch/releases{/id}","deployments_url":"https://api.github.com/repos/peter-mouland/nightwatch/deployments","created_at":"2016-02-02T12:27:30Z","updated_at":"2016-02-02T12:27:31Z","pushed_at":"2016-02-02T13:36:46Z","git_url":"git://github.com/peter-mouland/nightwatch.git","ssh_url":"git@github.com:peter-mouland/nightwatch.git","clone_url":"https://github.com/peter-mouland/nightwatch.git","svn_url":"https://github.com/peter-mouland/nightwatch","homepage":"http://nightwatchjs.org","size":46092,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nightwatchjs:master","ref":"master","sha":"65aa6eb9de7a4e05e306ebe400fe29323cc621ec","user":{"login":"nightwatchjs","id":12559275,"avatar_url":"https://avatars.githubusercontent.com/u/12559275?v=3","gravatar_id":"","url":"https://api.github.com/users/nightwatchjs","html_url":"https://github.com/nightwatchjs","followers_url":"https://api.github.com/users/nightwatchjs/followers","following_url":"https://api.github.com/users/nightwatchjs/following{/other_user}","gists_url":"https://api.github.com/users/nightwatchjs/gists{/gist_id}","starred_url":"https://api.github.com/users/nightwatchjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightwatchjs/subscriptions","organizations_url":"https://api.github.com/users/nightwatchjs/orgs","repos_url":"https://api.github.com/users/nightwatchjs/repos","events_url":"https://api.github.com/users/nightwatchjs/events{/privacy}","received_events_url":"https://api.github.com/users/nightwatchjs/received_events","type":"Organization","site_admin":false},"repo":{"id":3750921,"name":"nightwatch","full_name":"nightwatchjs/nightwatch","owner":{"login":"nightwatchjs","id":12559275,"avatar_url":"https://avatars.githubusercontent.com/u/12559275?v=3","gravatar_id":"","url":"https://api.github.com/users/nightwatchjs","html_url":"https://github.com/nightwatchjs","followers_url":"https://api.github.com/users/nightwatchjs/followers","following_url":"https://api.github.com/users/nightwatchjs/following{/other_user}","gists_url":"https://api.github.com/users/nightwatchjs/gists{/gist_id}","starred_url":"https://api.github.com/users/nightwatchjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightwatchjs/subscriptions","organizations_url":"https://api.github.com/users/nightwatchjs/orgs","repos_url":"https://api.github.com/users/nightwatchjs/repos","events_url":"https://api.github.com/users/nightwatchjs/events{/privacy}","received_events_url":"https://api.github.com/users/nightwatchjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nightwatchjs/nightwatch","description":"Automated testing and continous integration framework based on node.js and selenium webdriver","fork":false,"url":"https://api.github.com/repos/nightwatchjs/nightwatch","forks_url":"https://api.github.com/repos/nightwatchjs/nightwatch/forks","keys_url":"https://api.github.com/repos/nightwatchjs/nightwatch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nightwatchjs/nightwatch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nightwatchjs/nightwatch/teams","hooks_url":"https://api.github.com/repos/nightwatchjs/nightwatch/hooks","issue_events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/events{/number}","events_url":"https://api.github.com/repos/nightwatchjs/nightwatch/events","assignees_url":"https://api.github.com/repos/nightwatchjs/nightwatch/assignees{/user}","branches_url":"https://api.github.com/repos/nightwatchjs/nightwatch/branches{/branch}","tags_url":"https://api.github.com/repos/nightwatchjs/nightwatch/tags","blobs_url":"https://api.github.com/repos/nightwatchjs/nightwatch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nightwatchjs/nightwatch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nightwatchjs/nightwatch/git/refs{/sha}","trees_url":"https://api.github.com/repos/nightwatchjs/nightwatch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nightwatchjs/nightwatch/statuses/{sha}","languages_url":"https://api.github.com/repos/nightwatchjs/nightwatch/languages","stargazers_url":"https://api.github.com/repos/nightwatchjs/nightwatch/stargazers","contributors_url":"https://api.github.com/repos/nightwatchjs/nightwatch/contributors","subscribers_url":"https://api.github.com/repos/nightwatchjs/nightwatch/subscribers","subscription_url":"https://api.github.com/repos/nightwatchjs/nightwatch/subscription","commits_url":"https://api.github.com/repos/nightwatchjs/nightwatch/commits{/sha}","git_commits_url":"https://api.github.com/repos/nightwatchjs/nightwatch/git/commits{/sha}","comments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/comments{/number}","issue_comment_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/comments{/number}","contents_url":"https://api.github.com/repos/nightwatchjs/nightwatch/contents/{+path}","compare_url":"https://api.github.com/repos/nightwatchjs/nightwatch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nightwatchjs/nightwatch/merges","archive_url":"https://api.github.com/repos/nightwatchjs/nightwatch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nightwatchjs/nightwatch/downloads","issues_url":"https://api.github.com/repos/nightwatchjs/nightwatch/issues{/number}","pulls_url":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls{/number}","milestones_url":"https://api.github.com/repos/nightwatchjs/nightwatch/milestones{/number}","notifications_url":"https://api.github.com/repos/nightwatchjs/nightwatch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nightwatchjs/nightwatch/labels{/name}","releases_url":"https://api.github.com/repos/nightwatchjs/nightwatch/releases{/id}","deployments_url":"https://api.github.com/repos/nightwatchjs/nightwatch/deployments","created_at":"2012-03-17T21:28:18Z","updated_at":"2016-03-30T08:36:51Z","pushed_at":"2016-03-20T18:05:05Z","git_url":"git://github.com/nightwatchjs/nightwatch.git","ssh_url":"git@github.com:nightwatchjs/nightwatch.git","clone_url":"https://github.com/nightwatchjs/nightwatch.git","svn_url":"https://github.com/nightwatchjs/nightwatch","homepage":"http://nightwatchjs.org","size":46953,"stargazers_count":4032,"watchers_count":4032,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":365,"mirror_url":null,"open_issues_count":158,"forks":365,"open_issues":158,"watchers":4032,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836"},"html":{"href":"https://github.com/nightwatchjs/nightwatch/pull/836"},"issue":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/836"},"comments":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/issues/836/comments"},"review_comments":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836/comments"},"review_comment":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/pulls/836/commits"},"statuses":{"href":"https://api.github.com/repos/nightwatchjs/nightwatch/statuses/74f23f355f90c0940c535ecf0caee1613e742cfd"}}}}