{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/23558733","id":23558733,"diff_hunk":"@@ -73,5 +94,172 @@ public void verifyImageWasChanged(String imageOnePath, String imageTwoPath) {\n \tpublic void verifyLightboxClosed() {\n \t\tAssertion.assertFalse(checkIfElementOnPage(currentImage));\n \t}\n+\t\n+\tpublic String currentImageSrcPath () {\n+\t\treturn currentImage.getAttribute(\"src\");\n+\t}\n+\t\n+\tpublic void verifySwiping (PerformTouchAction touchAction, String direction, int attempts) {\n+\t\tString currentImageSrc = getCurrentImagePath();\n+\t\tString nextImageSrc;\n+\t\tboolean imageChanged = false;\n+\t\tint startX = 70;\n+\t\tint endX = 20;\n+\t\tint duration = 300;\n+\t\tint waitAfter = 5000;\n+\t\tif (direction == \"right\") {\n+\t\t\tint temp = startX;\n+\t\t\tstartX = endX;\n+\t\t\tendX = temp;\n+\t\t} else {\n+\t\t\tdirection = \"left\";","path":"src/test/java/com/wikia/webdriver/pageobjectsfactory/componentobject/mercury/LightBoxMercuryComponentObject.java","position":73,"original_position":73,"commit_id":"451d48b0c4a0d4a885fbaf52ef128b4afff000ec","original_commit_id":"451d48b0c4a0d4a885fbaf52ef128b4afff000ec","user":{"login":"rochan","id":6047704,"avatar_url":"https://avatars.githubusercontent.com/u/6047704?v=3","gravatar_id":"","url":"https://api.github.com/users/rochan","html_url":"https://github.com/rochan","followers_url":"https://api.github.com/users/rochan/followers","following_url":"https://api.github.com/users/rochan/following{/other_user}","gists_url":"https://api.github.com/users/rochan/gists{/gist_id}","starred_url":"https://api.github.com/users/rochan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rochan/subscriptions","organizations_url":"https://api.github.com/users/rochan/orgs","repos_url":"https://api.github.com/users/rochan/repos","events_url":"https://api.github.com/users/rochan/events{/privacy}","received_events_url":"https://api.github.com/users/rochan/received_events","type":"User","site_admin":false},"body":"if doing a String comparison, it needs to be used with .equals()\r\nI would suggest putting the String on the left side to avoid NullPointerException","created_at":"2015-01-26T19:50:16Z","updated_at":"2015-01-26T19:50:16Z","html_url":"https://github.com/Wikia/selenium-tests/pull/480#discussion_r23558733","pull_request_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480","_links":{"self":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/23558733"},"html":{"href":"https://github.com/Wikia/selenium-tests/pull/480#discussion_r23558733"},"pull_request":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480","id":28045930,"html_url":"https://github.com/Wikia/selenium-tests/pull/480","diff_url":"https://github.com/Wikia/selenium-tests/pull/480.diff","patch_url":"https://github.com/Wikia/selenium-tests/pull/480.patch","issue_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/480","number":480,"state":"open","locked":false,"title":"More tests, cleaning","user":{"login":"tomasznapieralski","id":10118538,"avatar_url":"https://avatars.githubusercontent.com/u/10118538?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasznapieralski","html_url":"https://github.com/tomasznapieralski","followers_url":"https://api.github.com/users/tomasznapieralski/followers","following_url":"https://api.github.com/users/tomasznapieralski/following{/other_user}","gists_url":"https://api.github.com/users/tomasznapieralski/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasznapieralski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasznapieralski/subscriptions","organizations_url":"https://api.github.com/users/tomasznapieralski/orgs","repos_url":"https://api.github.com/users/tomasznapieralski/repos","events_url":"https://api.github.com/users/tomasznapieralski/events{/privacy}","received_events_url":"https://api.github.com/users/tomasznapieralski/received_events","type":"User","site_admin":false},"body":"Please CR:\r\n@rochan \r\n@RodriGomez ","created_at":"2015-01-26T17:51:41Z","updated_at":"2015-01-26T19:50:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da254f9eab431cdc005c56a626ccb29cde52c82b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480/commits","review_comments_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480/comments","review_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/480/comments","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/451d48b0c4a0d4a885fbaf52ef128b4afff000ec","head":{"label":"Wikia:mercury-002","ref":"mercury-002","sha":"451d48b0c4a0d4a885fbaf52ef128b4afff000ec","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":6275065,"name":"selenium-tests","full_name":"Wikia/selenium-tests","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/selenium-tests","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/selenium-tests","forks_url":"https://api.github.com/repos/Wikia/selenium-tests/forks","keys_url":"https://api.github.com/repos/Wikia/selenium-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/selenium-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/selenium-tests/teams","hooks_url":"https://api.github.com/repos/Wikia/selenium-tests/hooks","issue_events_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/selenium-tests/events","assignees_url":"https://api.github.com/repos/Wikia/selenium-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/selenium-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/selenium-tests/tags","blobs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/selenium-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/selenium-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/selenium-tests/languages","stargazers_url":"https://api.github.com/repos/Wikia/selenium-tests/stargazers","contributors_url":"https://api.github.com/repos/Wikia/selenium-tests/contributors","subscribers_url":"https://api.github.com/repos/Wikia/selenium-tests/subscribers","subscription_url":"https://api.github.com/repos/Wikia/selenium-tests/subscription","commits_url":"https://api.github.com/repos/Wikia/selenium-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/selenium-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/comments/{number}","contents_url":"https://api.github.com/repos/Wikia/selenium-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/selenium-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/selenium-tests/merges","archive_url":"https://api.github.com/repos/Wikia/selenium-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/selenium-tests/downloads","issues_url":"https://api.github.com/repos/Wikia/selenium-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/selenium-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/selenium-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/selenium-tests/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/selenium-tests/releases{/id}","created_at":"2012-10-18T08:06:11Z","updated_at":"2015-01-26T19:13:46Z","pushed_at":"2015-01-26T19:13:45Z","git_url":"git://github.com/Wikia/selenium-tests.git","ssh_url":"git@github.com:Wikia/selenium-tests.git","clone_url":"https://github.com/Wikia/selenium-tests.git","svn_url":"https://github.com/Wikia/selenium-tests","homepage":null,"size":92797,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"Wikia:master","ref":"master","sha":"ef4cef8a030a4cf7cd924106eee8bebf632cad24","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":6275065,"name":"selenium-tests","full_name":"Wikia/selenium-tests","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/selenium-tests","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/selenium-tests","forks_url":"https://api.github.com/repos/Wikia/selenium-tests/forks","keys_url":"https://api.github.com/repos/Wikia/selenium-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/selenium-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/selenium-tests/teams","hooks_url":"https://api.github.com/repos/Wikia/selenium-tests/hooks","issue_events_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/selenium-tests/events","assignees_url":"https://api.github.com/repos/Wikia/selenium-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/selenium-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/selenium-tests/tags","blobs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/selenium-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/selenium-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/selenium-tests/languages","stargazers_url":"https://api.github.com/repos/Wikia/selenium-tests/stargazers","contributors_url":"https://api.github.com/repos/Wikia/selenium-tests/contributors","subscribers_url":"https://api.github.com/repos/Wikia/selenium-tests/subscribers","subscription_url":"https://api.github.com/repos/Wikia/selenium-tests/subscription","commits_url":"https://api.github.com/repos/Wikia/selenium-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/selenium-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/comments/{number}","contents_url":"https://api.github.com/repos/Wikia/selenium-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/selenium-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/selenium-tests/merges","archive_url":"https://api.github.com/repos/Wikia/selenium-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/selenium-tests/downloads","issues_url":"https://api.github.com/repos/Wikia/selenium-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/selenium-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/selenium-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/selenium-tests/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/selenium-tests/releases{/id}","created_at":"2012-10-18T08:06:11Z","updated_at":"2015-01-26T19:13:46Z","pushed_at":"2015-01-26T19:13:45Z","git_url":"git://github.com/Wikia/selenium-tests.git","ssh_url":"git@github.com:Wikia/selenium-tests.git","clone_url":"https://github.com/Wikia/selenium-tests.git","svn_url":"https://github.com/Wikia/selenium-tests","homepage":null,"size":92797,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480"},"html":{"href":"https://github.com/Wikia/selenium-tests/pull/480"},"issue":{"href":"https://api.github.com/repos/Wikia/selenium-tests/issues/480"},"comments":{"href":"https://api.github.com/repos/Wikia/selenium-tests/issues/480/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/480/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/selenium-tests/statuses/451d48b0c4a0d4a885fbaf52ef128b4afff000ec"}}}}