{"action":"created","comment":{"url":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments/26437556","id":26437556,"diff_hunk":"@@ -332,6 +332,58 @@ public void hoverAndViewStudentPhotoOnBody(int panelBodyIndex, String urlRegex)\n         JavascriptExecutor jsExecutor = (JavascriptExecutor) browser.driver;\n         jsExecutor.executeScript(\"document.getElementsByClassName('popover')[0].parentNode.removeChild(document.getElementsByClassName('popover')[0])\");\n     }\n+    \n+    public void hoverClickAndViewGiverPhotoOnTableCell(int questionBodyIndex, int tableRow, String urlRegex) throws Exception {\n+        String idOfQuestionBody = \"questionBody-\" + questionBodyIndex;\n+        WebElement photoDiv = browser.driver.findElement(By.id(idOfQuestionBody))\n+                                            .findElements(By.cssSelector(\".dataTable tbody tr\"))\n+                                            .get(tableRow)\n+                                            .findElements(By.cssSelector(\"td\"))\n+                                            .get(0)\n+                                            .findElement(By.className(\"profile-pic-icon-hover\"));\n+        Actions actions = new Actions(browser.driver);\n+        actions.moveToElement(photoDiv).build().perform();      \n+        waitForElementToAppear(By.cssSelector(\".popover-content\"));\n+        \n+        JavascriptExecutor jsExecutor = (JavascriptExecutor) browser.driver;\n+        jsExecutor.executeScript(\"document.getElementsByClassName('popover-content')[0]\"\n+                + \".getElementsByTagName('a')[0].click();\");\n+        \n+        waitForElementToAppear(By.cssSelector(\".popover-content > img\"));\n+        \n+        AssertHelper.assertContainsRegex(urlRegex, \n+                browser.driver.findElements(By.cssSelector(\".popover-content > img\"))\n+                              .get(0)\n+                              .getAttribute(\"src\"));\n+        \n+        jsExecutor.executeScript(\"document.getElementsByClassName('popover')[0].parentNode.removeChild(document.getElementsByClassName('popover')[0])\");\n+    }\n+    \n+    public void hoverClickAndViewRecipientPhotoOnTableCell(int questionBodyIndex, int tableRow, String urlRegex) throws Exception {","path":"src/test/java/teammates/test/pageobjects/InstructorFeedbackResultsPage.java","position":31,"original_position":31,"commit_id":"cbe0cb969ae2f4f8342a9d3ad0c4fa9ff8e1bdd2","original_commit_id":"cbe0cb969ae2f4f8342a9d3ad0c4fa9ff8e1bdd2","user":{"login":"thyageshm","id":5160137,"avatar_url":"https://avatars.githubusercontent.com/u/5160137?v=3","gravatar_id":"","url":"https://api.github.com/users/thyageshm","html_url":"https://github.com/thyageshm","followers_url":"https://api.github.com/users/thyageshm/followers","following_url":"https://api.github.com/users/thyageshm/following{/other_user}","gists_url":"https://api.github.com/users/thyageshm/gists{/gist_id}","starred_url":"https://api.github.com/users/thyageshm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thyageshm/subscriptions","organizations_url":"https://api.github.com/users/thyageshm/orgs","repos_url":"https://api.github.com/users/thyageshm/repos","events_url":"https://api.github.com/users/thyageshm/events{/privacy}","received_events_url":"https://api.github.com/users/thyageshm/received_events","type":"User","site_admin":false},"body":"any specific reason we have a separate function for this? I would suggest creating a generic function that takes in the column number as a parameter, then both these functions can call that one with the appropriate column number","created_at":"2015-03-14T12:45:13Z","updated_at":"2015-03-14T12:45:13Z","html_url":"https://github.com/TEAMMATES/repo/pull/3061#discussion_r26437556","pull_request_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061","_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments/26437556"},"html":{"href":"https://github.com/TEAMMATES/repo/pull/3061#discussion_r26437556"},"pull_request":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061"}}},"pull_request":{"url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061","id":30719103,"html_url":"https://github.com/TEAMMATES/repo/pull/3061","diff_url":"https://github.com/TEAMMATES/repo/pull/3061.diff","patch_url":"https://github.com/TEAMMATES/repo/pull/3061.patch","issue_url":"https://api.github.com/repos/TEAMMATES/repo/issues/3061","number":3061,"state":"open","locked":false,"title":"instructor session results, 'by question view': add the ability to view the profile photo #3028","user":{"login":"JosephineKwa","id":9999077,"avatar_url":"https://avatars.githubusercontent.com/u/9999077?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephineKwa","html_url":"https://github.com/JosephineKwa","followers_url":"https://api.github.com/users/JosephineKwa/followers","following_url":"https://api.github.com/users/JosephineKwa/following{/other_user}","gists_url":"https://api.github.com/users/JosephineKwa/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephineKwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephineKwa/subscriptions","organizations_url":"https://api.github.com/users/JosephineKwa/orgs","repos_url":"https://api.github.com/users/JosephineKwa/repos","events_url":"https://api.github.com/users/JosephineKwa/events{/privacy}","received_events_url":"https://api.github.com/users/JosephineKwa/received_events","type":"User","site_admin":false},"body":"Fixes #3028 ","created_at":"2015-03-08T12:51:45Z","updated_at":"2015-03-14T12:45:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"883af129092ec33982bf2403be48f73fa4fab907","assignee":{"login":"thyageshm","id":5160137,"avatar_url":"https://avatars.githubusercontent.com/u/5160137?v=3","gravatar_id":"","url":"https://api.github.com/users/thyageshm","html_url":"https://github.com/thyageshm","followers_url":"https://api.github.com/users/thyageshm/followers","following_url":"https://api.github.com/users/thyageshm/following{/other_user}","gists_url":"https://api.github.com/users/thyageshm/gists{/gist_id}","starred_url":"https://api.github.com/users/thyageshm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thyageshm/subscriptions","organizations_url":"https://api.github.com/users/thyageshm/orgs","repos_url":"https://api.github.com/users/thyageshm/repos","events_url":"https://api.github.com/users/thyageshm/events{/privacy}","received_events_url":"https://api.github.com/users/thyageshm/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061/commits","review_comments_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061/comments","review_comment_url":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TEAMMATES/repo/issues/3061/comments","statuses_url":"https://api.github.com/repos/TEAMMATES/repo/statuses/cbe0cb969ae2f4f8342a9d3ad0c4fa9ff8e1bdd2","head":{"label":"JosephineKwa:Issue3028","ref":"Issue3028","sha":"cbe0cb969ae2f4f8342a9d3ad0c4fa9ff8e1bdd2","user":{"login":"JosephineKwa","id":9999077,"avatar_url":"https://avatars.githubusercontent.com/u/9999077?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephineKwa","html_url":"https://github.com/JosephineKwa","followers_url":"https://api.github.com/users/JosephineKwa/followers","following_url":"https://api.github.com/users/JosephineKwa/following{/other_user}","gists_url":"https://api.github.com/users/JosephineKwa/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephineKwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephineKwa/subscriptions","organizations_url":"https://api.github.com/users/JosephineKwa/orgs","repos_url":"https://api.github.com/users/JosephineKwa/repos","events_url":"https://api.github.com/users/JosephineKwa/events{/privacy}","received_events_url":"https://api.github.com/users/JosephineKwa/received_events","type":"User","site_admin":false},"repo":{"id":29021484,"name":"repo","full_name":"JosephineKwa/repo","owner":{"login":"JosephineKwa","id":9999077,"avatar_url":"https://avatars.githubusercontent.com/u/9999077?v=3","gravatar_id":"","url":"https://api.github.com/users/JosephineKwa","html_url":"https://github.com/JosephineKwa","followers_url":"https://api.github.com/users/JosephineKwa/followers","following_url":"https://api.github.com/users/JosephineKwa/following{/other_user}","gists_url":"https://api.github.com/users/JosephineKwa/gists{/gist_id}","starred_url":"https://api.github.com/users/JosephineKwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosephineKwa/subscriptions","organizations_url":"https://api.github.com/users/JosephineKwa/orgs","repos_url":"https://api.github.com/users/JosephineKwa/repos","events_url":"https://api.github.com/users/JosephineKwa/events{/privacy}","received_events_url":"https://api.github.com/users/JosephineKwa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JosephineKwa/repo","description":"","fork":true,"url":"https://api.github.com/repos/JosephineKwa/repo","forks_url":"https://api.github.com/repos/JosephineKwa/repo/forks","keys_url":"https://api.github.com/repos/JosephineKwa/repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JosephineKwa/repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JosephineKwa/repo/teams","hooks_url":"https://api.github.com/repos/JosephineKwa/repo/hooks","issue_events_url":"https://api.github.com/repos/JosephineKwa/repo/issues/events{/number}","events_url":"https://api.github.com/repos/JosephineKwa/repo/events","assignees_url":"https://api.github.com/repos/JosephineKwa/repo/assignees{/user}","branches_url":"https://api.github.com/repos/JosephineKwa/repo/branches{/branch}","tags_url":"https://api.github.com/repos/JosephineKwa/repo/tags","blobs_url":"https://api.github.com/repos/JosephineKwa/repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JosephineKwa/repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JosephineKwa/repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/JosephineKwa/repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JosephineKwa/repo/statuses/{sha}","languages_url":"https://api.github.com/repos/JosephineKwa/repo/languages","stargazers_url":"https://api.github.com/repos/JosephineKwa/repo/stargazers","contributors_url":"https://api.github.com/repos/JosephineKwa/repo/contributors","subscribers_url":"https://api.github.com/repos/JosephineKwa/repo/subscribers","subscription_url":"https://api.github.com/repos/JosephineKwa/repo/subscription","commits_url":"https://api.github.com/repos/JosephineKwa/repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/JosephineKwa/repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/JosephineKwa/repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/JosephineKwa/repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/JosephineKwa/repo/contents/{+path}","compare_url":"https://api.github.com/repos/JosephineKwa/repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JosephineKwa/repo/merges","archive_url":"https://api.github.com/repos/JosephineKwa/repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JosephineKwa/repo/downloads","issues_url":"https://api.github.com/repos/JosephineKwa/repo/issues{/number}","pulls_url":"https://api.github.com/repos/JosephineKwa/repo/pulls{/number}","milestones_url":"https://api.github.com/repos/JosephineKwa/repo/milestones{/number}","notifications_url":"https://api.github.com/repos/JosephineKwa/repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JosephineKwa/repo/labels{/name}","releases_url":"https://api.github.com/repos/JosephineKwa/repo/releases{/id}","created_at":"2015-01-09T15:17:38Z","updated_at":"2015-02-24T18:21:39Z","pushed_at":"2015-03-08T12:50:44Z","git_url":"git://github.com/JosephineKwa/repo.git","ssh_url":"git@github.com:JosephineKwa/repo.git","clone_url":"https://github.com/JosephineKwa/repo.git","svn_url":"https://github.com/JosephineKwa/repo","homepage":"https://teammatesv4.appspot.com/","size":111358,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"TEAMMATES:master","ref":"master","sha":"16064579c9eeb91b8c210db1e2bf9282370e231e","user":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"repo":{"id":19369035,"name":"repo","full_name":"TEAMMATES/repo","owner":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TEAMMATES/repo","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":false,"url":"https://api.github.com/repos/TEAMMATES/repo","forks_url":"https://api.github.com/repos/TEAMMATES/repo/forks","keys_url":"https://api.github.com/repos/TEAMMATES/repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TEAMMATES/repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TEAMMATES/repo/teams","hooks_url":"https://api.github.com/repos/TEAMMATES/repo/hooks","issue_events_url":"https://api.github.com/repos/TEAMMATES/repo/issues/events{/number}","events_url":"https://api.github.com/repos/TEAMMATES/repo/events","assignees_url":"https://api.github.com/repos/TEAMMATES/repo/assignees{/user}","branches_url":"https://api.github.com/repos/TEAMMATES/repo/branches{/branch}","tags_url":"https://api.github.com/repos/TEAMMATES/repo/tags","blobs_url":"https://api.github.com/repos/TEAMMATES/repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TEAMMATES/repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TEAMMATES/repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/TEAMMATES/repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TEAMMATES/repo/statuses/{sha}","languages_url":"https://api.github.com/repos/TEAMMATES/repo/languages","stargazers_url":"https://api.github.com/repos/TEAMMATES/repo/stargazers","contributors_url":"https://api.github.com/repos/TEAMMATES/repo/contributors","subscribers_url":"https://api.github.com/repos/TEAMMATES/repo/subscribers","subscription_url":"https://api.github.com/repos/TEAMMATES/repo/subscription","commits_url":"https://api.github.com/repos/TEAMMATES/repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/TEAMMATES/repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/TEAMMATES/repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/TEAMMATES/repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/TEAMMATES/repo/contents/{+path}","compare_url":"https://api.github.com/repos/TEAMMATES/repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TEAMMATES/repo/merges","archive_url":"https://api.github.com/repos/TEAMMATES/repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TEAMMATES/repo/downloads","issues_url":"https://api.github.com/repos/TEAMMATES/repo/issues{/number}","pulls_url":"https://api.github.com/repos/TEAMMATES/repo/pulls{/number}","milestones_url":"https://api.github.com/repos/TEAMMATES/repo/milestones{/number}","notifications_url":"https://api.github.com/repos/TEAMMATES/repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TEAMMATES/repo/labels{/name}","releases_url":"https://api.github.com/repos/TEAMMATES/repo/releases{/id}","created_at":"2014-05-02T07:43:00Z","updated_at":"2015-03-14T10:08:54Z","pushed_at":"2015-03-14T10:48:13Z","git_url":"git://github.com/TEAMMATES/repo.git","ssh_url":"git@github.com:TEAMMATES/repo.git","clone_url":"https://github.com/TEAMMATES/repo.git","svn_url":"https://github.com/TEAMMATES/repo","homepage":"http://teammatesv4.appspot.com/","size":137696,"stargazers_count":37,"watchers_count":37,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"open_issues_count":397,"forks":86,"open_issues":397,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061"},"html":{"href":"https://github.com/TEAMMATES/repo/pull/3061"},"issue":{"href":"https://api.github.com/repos/TEAMMATES/repo/issues/3061"},"comments":{"href":"https://api.github.com/repos/TEAMMATES/repo/issues/3061/comments"},"review_comments":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061/comments"},"review_comment":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TEAMMATES/repo/pulls/3061/commits"},"statuses":{"href":"https://api.github.com/repos/TEAMMATES/repo/statuses/cbe0cb969ae2f4f8342a9d3ad0c4fa9ff8e1bdd2"}}}}