{"action":"created","comment":{"url":"https://api.github.com/repos/kidk/felt/pulls/comments/69380158","id":69380158,"diff_hunk":"@@ -231,7 +240,17 @@ function click(selector) {\n         var message = '';\n         var elements = document.querySelectorAll(selector);\n         if (elements !== null && elements.length === 1) {\n-            elements[0].click();\n+            // TODO: click on an <a> element is not supported in all browsers by default.\n+            // find a more clean solution.\n+            if (typeof elements[0].click === 'function') {\n+                elements[0].click();\n+            } else if (elements[0].fireEvent) {\n+                elements[0].fireEvent('on' + 'click');\n+            } else {\n+                var evObj = document.createEvent('Events');\n+                evObj.initEvent('click', true, false);\n+                elements[0].dispatchEvent(evObj);\n+            }\n         } else if (elements !== null && elements.length > 1) {\n             message = 'Selector ' + selector + ' matches more than 1 element, clicking the first element.';","path":"worker.js","position":58,"original_position":58,"commit_id":"08c28d8b813f6747c761662fe678e0a3b819f24c","original_commit_id":"08c28d8b813f6747c761662fe678e0a3b819f24c","user":{"login":"kidk","id":184273,"avatar_url":"https://avatars.githubusercontent.com/u/184273?v=3","gravatar_id":"","url":"https://api.github.com/users/kidk","html_url":"https://github.com/kidk","followers_url":"https://api.github.com/users/kidk/followers","following_url":"https://api.github.com/users/kidk/following{/other_user}","gists_url":"https://api.github.com/users/kidk/gists{/gist_id}","starred_url":"https://api.github.com/users/kidk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidk/subscriptions","organizations_url":"https://api.github.com/users/kidk/orgs","repos_url":"https://api.github.com/users/kidk/repos","events_url":"https://api.github.com/users/kidk/events{/privacy}","received_events_url":"https://api.github.com/users/kidk/received_events","type":"User","site_admin":false},"body":"Is there missing code here?","created_at":"2016-07-02T16:48:06Z","updated_at":"2016-07-02T16:48:06Z","html_url":"https://github.com/kidk/felt/pull/18#discussion_r69380158","pull_request_url":"https://api.github.com/repos/kidk/felt/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/kidk/felt/pulls/comments/69380158"},"html":{"href":"https://github.com/kidk/felt/pull/18#discussion_r69380158"},"pull_request":{"href":"https://api.github.com/repos/kidk/felt/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/kidk/felt/pulls/18","id":72708170,"html_url":"https://github.com/kidk/felt/pull/18","diff_url":"https://github.com/kidk/felt/pull/18.diff","patch_url":"https://github.com/kidk/felt/pull/18.patch","issue_url":"https://api.github.com/repos/kidk/felt/issues/18","number":18,"state":"open","locked":false,"title":"added element check","user":{"login":"cristianciutea","id":15685307,"avatar_url":"https://avatars.githubusercontent.com/u/15685307?v=3","gravatar_id":"","url":"https://api.github.com/users/cristianciutea","html_url":"https://github.com/cristianciutea","followers_url":"https://api.github.com/users/cristianciutea/followers","following_url":"https://api.github.com/users/cristianciutea/following{/other_user}","gists_url":"https://api.github.com/users/cristianciutea/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianciutea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianciutea/subscriptions","organizations_url":"https://api.github.com/users/cristianciutea/orgs","repos_url":"https://api.github.com/users/cristianciutea/repos","events_url":"https://api.github.com/users/cristianciutea/events{/privacy}","received_events_url":"https://api.github.com/users/cristianciutea/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-06T13:23:10Z","updated_at":"2016-07-02T16:48:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27bb83cffe0ce5581e38e90f6699e8a2e657f54d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kidk/felt/pulls/18/commits","review_comments_url":"https://api.github.com/repos/kidk/felt/pulls/18/comments","review_comment_url":"https://api.github.com/repos/kidk/felt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kidk/felt/issues/18/comments","statuses_url":"https://api.github.com/repos/kidk/felt/statuses/08c28d8b813f6747c761662fe678e0a3b819f24c","head":{"label":"cristianciutea:checkelement","ref":"checkelement","sha":"08c28d8b813f6747c761662fe678e0a3b819f24c","user":{"login":"cristianciutea","id":15685307,"avatar_url":"https://avatars.githubusercontent.com/u/15685307?v=3","gravatar_id":"","url":"https://api.github.com/users/cristianciutea","html_url":"https://github.com/cristianciutea","followers_url":"https://api.github.com/users/cristianciutea/followers","following_url":"https://api.github.com/users/cristianciutea/following{/other_user}","gists_url":"https://api.github.com/users/cristianciutea/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianciutea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianciutea/subscriptions","organizations_url":"https://api.github.com/users/cristianciutea/orgs","repos_url":"https://api.github.com/users/cristianciutea/repos","events_url":"https://api.github.com/users/cristianciutea/events{/privacy}","received_events_url":"https://api.github.com/users/cristianciutea/received_events","type":"User","site_admin":false},"repo":{"id":60259277,"name":"felt","full_name":"cristianciutea/felt","owner":{"login":"cristianciutea","id":15685307,"avatar_url":"https://avatars.githubusercontent.com/u/15685307?v=3","gravatar_id":"","url":"https://api.github.com/users/cristianciutea","html_url":"https://github.com/cristianciutea","followers_url":"https://api.github.com/users/cristianciutea/followers","following_url":"https://api.github.com/users/cristianciutea/following{/other_user}","gists_url":"https://api.github.com/users/cristianciutea/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianciutea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianciutea/subscriptions","organizations_url":"https://api.github.com/users/cristianciutea/orgs","repos_url":"https://api.github.com/users/cristianciutea/repos","events_url":"https://api.github.com/users/cristianciutea/events{/privacy}","received_events_url":"https://api.github.com/users/cristianciutea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cristianciutea/felt","description":"Front end load testing","fork":true,"url":"https://api.github.com/repos/cristianciutea/felt","forks_url":"https://api.github.com/repos/cristianciutea/felt/forks","keys_url":"https://api.github.com/repos/cristianciutea/felt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cristianciutea/felt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cristianciutea/felt/teams","hooks_url":"https://api.github.com/repos/cristianciutea/felt/hooks","issue_events_url":"https://api.github.com/repos/cristianciutea/felt/issues/events{/number}","events_url":"https://api.github.com/repos/cristianciutea/felt/events","assignees_url":"https://api.github.com/repos/cristianciutea/felt/assignees{/user}","branches_url":"https://api.github.com/repos/cristianciutea/felt/branches{/branch}","tags_url":"https://api.github.com/repos/cristianciutea/felt/tags","blobs_url":"https://api.github.com/repos/cristianciutea/felt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cristianciutea/felt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cristianciutea/felt/git/refs{/sha}","trees_url":"https://api.github.com/repos/cristianciutea/felt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cristianciutea/felt/statuses/{sha}","languages_url":"https://api.github.com/repos/cristianciutea/felt/languages","stargazers_url":"https://api.github.com/repos/cristianciutea/felt/stargazers","contributors_url":"https://api.github.com/repos/cristianciutea/felt/contributors","subscribers_url":"https://api.github.com/repos/cristianciutea/felt/subscribers","subscription_url":"https://api.github.com/repos/cristianciutea/felt/subscription","commits_url":"https://api.github.com/repos/cristianciutea/felt/commits{/sha}","git_commits_url":"https://api.github.com/repos/cristianciutea/felt/git/commits{/sha}","comments_url":"https://api.github.com/repos/cristianciutea/felt/comments{/number}","issue_comment_url":"https://api.github.com/repos/cristianciutea/felt/issues/comments{/number}","contents_url":"https://api.github.com/repos/cristianciutea/felt/contents/{+path}","compare_url":"https://api.github.com/repos/cristianciutea/felt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cristianciutea/felt/merges","archive_url":"https://api.github.com/repos/cristianciutea/felt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cristianciutea/felt/downloads","issues_url":"https://api.github.com/repos/cristianciutea/felt/issues{/number}","pulls_url":"https://api.github.com/repos/cristianciutea/felt/pulls{/number}","milestones_url":"https://api.github.com/repos/cristianciutea/felt/milestones{/number}","notifications_url":"https://api.github.com/repos/cristianciutea/felt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cristianciutea/felt/labels{/name}","releases_url":"https://api.github.com/repos/cristianciutea/felt/releases{/id}","deployments_url":"https://api.github.com/repos/cristianciutea/felt/deployments","created_at":"2016-06-02T11:41:04Z","updated_at":"2016-06-02T11:41:05Z","pushed_at":"2016-06-02T11:45:44Z","git_url":"git://github.com/cristianciutea/felt.git","ssh_url":"git@github.com:cristianciutea/felt.git","clone_url":"https://github.com/cristianciutea/felt.git","svn_url":"https://github.com/cristianciutea/felt","homepage":null,"size":68,"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":"kidk:master","ref":"master","sha":"8692d0d3990103d6eb3c8db63d1bae47926ea005","user":{"login":"kidk","id":184273,"avatar_url":"https://avatars.githubusercontent.com/u/184273?v=3","gravatar_id":"","url":"https://api.github.com/users/kidk","html_url":"https://github.com/kidk","followers_url":"https://api.github.com/users/kidk/followers","following_url":"https://api.github.com/users/kidk/following{/other_user}","gists_url":"https://api.github.com/users/kidk/gists{/gist_id}","starred_url":"https://api.github.com/users/kidk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidk/subscriptions","organizations_url":"https://api.github.com/users/kidk/orgs","repos_url":"https://api.github.com/users/kidk/repos","events_url":"https://api.github.com/users/kidk/events{/privacy}","received_events_url":"https://api.github.com/users/kidk/received_events","type":"User","site_admin":false},"repo":{"id":44885478,"name":"felt","full_name":"kidk/felt","owner":{"login":"kidk","id":184273,"avatar_url":"https://avatars.githubusercontent.com/u/184273?v=3","gravatar_id":"","url":"https://api.github.com/users/kidk","html_url":"https://github.com/kidk","followers_url":"https://api.github.com/users/kidk/followers","following_url":"https://api.github.com/users/kidk/following{/other_user}","gists_url":"https://api.github.com/users/kidk/gists{/gist_id}","starred_url":"https://api.github.com/users/kidk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kidk/subscriptions","organizations_url":"https://api.github.com/users/kidk/orgs","repos_url":"https://api.github.com/users/kidk/repos","events_url":"https://api.github.com/users/kidk/events{/privacy}","received_events_url":"https://api.github.com/users/kidk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kidk/felt","description":"Front end load testing","fork":false,"url":"https://api.github.com/repos/kidk/felt","forks_url":"https://api.github.com/repos/kidk/felt/forks","keys_url":"https://api.github.com/repos/kidk/felt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kidk/felt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kidk/felt/teams","hooks_url":"https://api.github.com/repos/kidk/felt/hooks","issue_events_url":"https://api.github.com/repos/kidk/felt/issues/events{/number}","events_url":"https://api.github.com/repos/kidk/felt/events","assignees_url":"https://api.github.com/repos/kidk/felt/assignees{/user}","branches_url":"https://api.github.com/repos/kidk/felt/branches{/branch}","tags_url":"https://api.github.com/repos/kidk/felt/tags","blobs_url":"https://api.github.com/repos/kidk/felt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kidk/felt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kidk/felt/git/refs{/sha}","trees_url":"https://api.github.com/repos/kidk/felt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kidk/felt/statuses/{sha}","languages_url":"https://api.github.com/repos/kidk/felt/languages","stargazers_url":"https://api.github.com/repos/kidk/felt/stargazers","contributors_url":"https://api.github.com/repos/kidk/felt/contributors","subscribers_url":"https://api.github.com/repos/kidk/felt/subscribers","subscription_url":"https://api.github.com/repos/kidk/felt/subscription","commits_url":"https://api.github.com/repos/kidk/felt/commits{/sha}","git_commits_url":"https://api.github.com/repos/kidk/felt/git/commits{/sha}","comments_url":"https://api.github.com/repos/kidk/felt/comments{/number}","issue_comment_url":"https://api.github.com/repos/kidk/felt/issues/comments{/number}","contents_url":"https://api.github.com/repos/kidk/felt/contents/{+path}","compare_url":"https://api.github.com/repos/kidk/felt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kidk/felt/merges","archive_url":"https://api.github.com/repos/kidk/felt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kidk/felt/downloads","issues_url":"https://api.github.com/repos/kidk/felt/issues{/number}","pulls_url":"https://api.github.com/repos/kidk/felt/pulls{/number}","milestones_url":"https://api.github.com/repos/kidk/felt/milestones{/number}","notifications_url":"https://api.github.com/repos/kidk/felt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kidk/felt/labels{/name}","releases_url":"https://api.github.com/repos/kidk/felt/releases{/id}","deployments_url":"https://api.github.com/repos/kidk/felt/deployments","created_at":"2015-10-24T21:24:13Z","updated_at":"2016-05-18T01:00:47Z","pushed_at":"2016-06-06T13:23:11Z","git_url":"git://github.com/kidk/felt.git","ssh_url":"git@github.com:kidk/felt.git","clone_url":"https://github.com/kidk/felt.git","svn_url":"https://github.com/kidk/felt","homepage":null,"size":66,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kidk/felt/pulls/18"},"html":{"href":"https://github.com/kidk/felt/pull/18"},"issue":{"href":"https://api.github.com/repos/kidk/felt/issues/18"},"comments":{"href":"https://api.github.com/repos/kidk/felt/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/kidk/felt/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/kidk/felt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kidk/felt/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/kidk/felt/statuses/08c28d8b813f6747c761662fe678e0a3b819f24c"}}}}
{"actor":{"display_login":"kidk"}}