{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-greg/pulls/comments/86715941","pull_request_review_id":7359157,"id":86715941,"diff_hunk":"@@ -0,0 +1,86 @@\n+/*\n+ *  Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ *  Licensed under the Apache License, Version 2.0 (the \"License\");\n+ *  you may not use this file except in compliance with the License.\n+ *  You may obtain a copy of the License at\n+ *\n+ *  http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *  Unless required by applicable law or agreed to in writing, software\n+ *  distributed under the License is distributed on an \"AS IS\" BASIS,\n+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ *  See the License for the specific language governing permissions and\n+ *  limitations under the License.\n+ */\n+\n+package org.wso2.carbon.greg.store;\n+\n+import org.openqa.selenium.By;\n+import org.openqa.selenium.Keys;\n+import org.openqa.selenium.WebDriver;\n+import org.wso2.greg.integration.common.ui.page.util.UIElementMapper;\n+\n+import static org.testng.AssertJUnit.assertTrue;\n+\n+/**\n+ * UI model object class for search results page. This can be used to perform operations on the search results page.\n+ */\n+public class SearchResultsPage {\n+\n+    private WebDriver driver;\n+    private UIElementMapper uiElementMapper;\n+\n+    /**\n+     * Constructor for search results page. This performs search of any given query on store and constructs\n+     * the results page. This verifies if the driver is in results page before returns.\n+     *\n+     * @param driver   WebDriver object to perform operations.\n+     * @param query    The search query.\n+     * @param hitEnter True, if the search needs to be done by hitting the enter button on search field.\n+     */\n+    public SearchResultsPage(WebDriver driver, String query, boolean hitEnter) {\n+\n+        this.driver = driver;\n+        uiElementMapper = UIElementMapper.getInstance();\n+\n+        this.driver.findElement(By.id(uiElementMapper.getElement(\"store.searchbar.id\"))).click();","path":"modules/integration/tests-ui-integration/tests-es-ui/src/test/java/org/wso2/carbon/greg/store/SearchResultsPage.java","position":47,"original_position":47,"commit_id":"ecb36a92a515080f643dc60b5ffdfde06600fbd1","original_commit_id":"ecb36a92a515080f643dc60b5ffdfde06600fbd1","user":{"login":"Malintha","id":3253761,"avatar_url":"https://avatars.githubusercontent.com/u/3253761?v=3","gravatar_id":"","url":"https://api.github.com/users/Malintha","html_url":"https://github.com/Malintha","followers_url":"https://api.github.com/users/Malintha/followers","following_url":"https://api.github.com/users/Malintha/following{/other_user}","gists_url":"https://api.github.com/users/Malintha/gists{/gist_id}","starred_url":"https://api.github.com/users/Malintha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malintha/subscriptions","organizations_url":"https://api.github.com/users/Malintha/orgs","repos_url":"https://api.github.com/users/Malintha/repos","events_url":"https://api.github.com/users/Malintha/events{/privacy}","received_events_url":"https://api.github.com/users/Malintha/received_events","type":"User","site_admin":false},"body":"Realigned by a87b962bf6ffa87dbf1247c454a255467e44930b","created_at":"2016-11-07T05:45:06Z","updated_at":"2016-11-07T05:45:06Z","html_url":"https://github.com/wso2/product-greg/pull/509#discussion_r86715941","pull_request_url":"https://api.github.com/repos/wso2/product-greg/pulls/509","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/comments/86715941"},"html":{"href":"https://github.com/wso2/product-greg/pull/509#discussion_r86715941"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/509"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-greg/pulls/509","id":60076251,"html_url":"https://github.com/wso2/product-greg/pull/509","diff_url":"https://github.com/wso2/product-greg/pull/509.diff","patch_url":"https://github.com/wso2/product-greg/pull/509.patch","issue_url":"https://api.github.com/repos/wso2/product-greg/issues/509","number":509,"state":"closed","locked":false,"title":"Fix for REGISTRY-3228","user":{"login":"Malintha","id":3253761,"avatar_url":"https://avatars.githubusercontent.com/u/3253761?v=3","gravatar_id":"","url":"https://api.github.com/users/Malintha","html_url":"https://github.com/Malintha","followers_url":"https://api.github.com/users/Malintha/followers","following_url":"https://api.github.com/users/Malintha/following{/other_user}","gists_url":"https://api.github.com/users/Malintha/gists{/gist_id}","starred_url":"https://api.github.com/users/Malintha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malintha/subscriptions","organizations_url":"https://api.github.com/users/Malintha/orgs","repos_url":"https://api.github.com/users/Malintha/repos","events_url":"https://api.github.com/users/Malintha/events{/privacy}","received_events_url":"https://api.github.com/users/Malintha/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-21T06:36:04Z","updated_at":"2016-11-07T05:45:06Z","closed_at":"2016-02-23T13:57:42Z","merged_at":"2016-02-23T13:57:42Z","merge_commit_sha":"682f223090010533120d10e35a1825a20f1a2670","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-greg/pulls/509/commits","review_comments_url":"https://api.github.com/repos/wso2/product-greg/pulls/509/comments","review_comment_url":"https://api.github.com/repos/wso2/product-greg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-greg/issues/509/comments","statuses_url":"https://api.github.com/repos/wso2/product-greg/statuses/ecb36a92a515080f643dc60b5ffdfde06600fbd1","head":{"label":"Malintha:upstream","ref":"upstream","sha":"ecb36a92a515080f643dc60b5ffdfde06600fbd1","user":{"login":"Malintha","id":3253761,"avatar_url":"https://avatars.githubusercontent.com/u/3253761?v=3","gravatar_id":"","url":"https://api.github.com/users/Malintha","html_url":"https://github.com/Malintha","followers_url":"https://api.github.com/users/Malintha/followers","following_url":"https://api.github.com/users/Malintha/following{/other_user}","gists_url":"https://api.github.com/users/Malintha/gists{/gist_id}","starred_url":"https://api.github.com/users/Malintha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malintha/subscriptions","organizations_url":"https://api.github.com/users/Malintha/orgs","repos_url":"https://api.github.com/users/Malintha/repos","events_url":"https://api.github.com/users/Malintha/events{/privacy}","received_events_url":"https://api.github.com/users/Malintha/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"wso2:master","ref":"master","sha":"8020bde8635b0913555d59d283e00c6f7a35b78d","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16977759,"name":"product-greg","full_name":"wso2/product-greg","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-greg","description":"Welcome to the WSO2 Governance Registry source code! For info on working with the WSO2 Governance Registry repository and contributing code, click the link below.","fork":false,"url":"https://api.github.com/repos/wso2/product-greg","forks_url":"https://api.github.com/repos/wso2/product-greg/forks","keys_url":"https://api.github.com/repos/wso2/product-greg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-greg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-greg/teams","hooks_url":"https://api.github.com/repos/wso2/product-greg/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-greg/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-greg/events","assignees_url":"https://api.github.com/repos/wso2/product-greg/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-greg/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-greg/tags","blobs_url":"https://api.github.com/repos/wso2/product-greg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-greg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-greg/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-greg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-greg/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-greg/languages","stargazers_url":"https://api.github.com/repos/wso2/product-greg/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-greg/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-greg/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-greg/subscription","commits_url":"https://api.github.com/repos/wso2/product-greg/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-greg/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-greg/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-greg/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-greg/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-greg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-greg/merges","archive_url":"https://api.github.com/repos/wso2/product-greg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-greg/downloads","issues_url":"https://api.github.com/repos/wso2/product-greg/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-greg/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-greg/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-greg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-greg/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-greg/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/product-greg/deployments","created_at":"2014-02-19T08:15:10Z","updated_at":"2016-07-17T11:57:13Z","pushed_at":"2016-11-07T05:44:09Z","git_url":"git://github.com/wso2/product-greg.git","ssh_url":"git@github.com:wso2/product-greg.git","clone_url":"https://github.com/wso2/product-greg.git","svn_url":"https://github.com/wso2/product-greg","homepage":"http://wso2.github.io/","size":39636,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":36,"forks":72,"open_issues":36,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/509"},"html":{"href":"https://github.com/wso2/product-greg/pull/509"},"issue":{"href":"https://api.github.com/repos/wso2/product-greg/issues/509"},"comments":{"href":"https://api.github.com/repos/wso2/product-greg/issues/509/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/509/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-greg/pulls/509/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-greg/statuses/ecb36a92a515080f643dc60b5ffdfde06600fbd1"}}}}
{"actor":{"display_login":"Malintha"}}