{"action":"created","comment":{"url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/comments/35079236","id":35079236,"diff_hunk":"@@ -439,4 +439,41 @@ public function checkAllResults()\n \t\t$this->debug(\"Selecting Checkall button\");\n \t\t$I->click(['xpath' => \"//thead//input[@name='checkall-toggle' or @name='toggle']\"]);\n \t}\n+\n+    /**\n+     * Function to install a language through the interface\n+     *\n+     * @param string $languageName Name of the language you want to install\n+     *\n+     * @return void\n+     */\n+    public function installLanguage($languageName)\n+    {\n+        $I = $this;\n+        $I->amOnPage('administrator/index.php?option=com_installer&view=languages');\n+        $this->debug('I check for Notices and Warnings');\n+        $this->checkForPhpNoticesOrWarnings();\n+        $this->debug('Refreshing languages');\n+        $I->click(['xpath' => \"//*[@id=\\\"toolbar-refresh\\\"]/button\"]);","path":"src/JoomlaBrowser.php","position":37,"original_position":37,"commit_id":"6f27d331d84719b0b58653f82212645823205bae","original_commit_id":"6f27d331d84719b0b58653f82212645823205bae","user":{"login":"puneet0191","id":3048593,"avatar_url":"https://avatars.githubusercontent.com/u/3048593?v=3","gravatar_id":"","url":"https://api.github.com/users/puneet0191","html_url":"https://github.com/puneet0191","followers_url":"https://api.github.com/users/puneet0191/followers","following_url":"https://api.github.com/users/puneet0191/following{/other_user}","gists_url":"https://api.github.com/users/puneet0191/gists{/gist_id}","starred_url":"https://api.github.com/users/puneet0191/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneet0191/subscriptions","organizations_url":"https://api.github.com/users/puneet0191/orgs","repos_url":"https://api.github.com/users/puneet0191/repos","events_url":"https://api.github.com/users/puneet0191/events{/privacy}","received_events_url":"https://api.github.com/users/puneet0191/received_events","type":"User","site_admin":false},"body":"Same here, Please update the xpath to be more specific \r\n```\r\n//* is not the best way to do it.\r\n```\r\nThanks ","created_at":"2015-07-21T08:22:59Z","updated_at":"2015-07-21T08:22:59Z","html_url":"https://github.com/joomla-projects/joomla-browser/pull/32#discussion_r35079236","pull_request_url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/comments/35079236"},"html":{"href":"https://github.com/joomla-projects/joomla-browser/pull/32#discussion_r35079236"},"pull_request":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32","id":40432492,"html_url":"https://github.com/joomla-projects/joomla-browser/pull/32","diff_url":"https://github.com/joomla-projects/joomla-browser/pull/32.diff","patch_url":"https://github.com/joomla-projects/joomla-browser/pull/32.patch","issue_url":"https://api.github.com/repos/joomla-projects/joomla-browser/issues/32","number":32,"state":"open","locked":false,"title":"Adding function to install a particular language.","user":{"login":"vistiyos","id":822629,"avatar_url":"https://avatars.githubusercontent.com/u/822629?v=3","gravatar_id":"","url":"https://api.github.com/users/vistiyos","html_url":"https://github.com/vistiyos","followers_url":"https://api.github.com/users/vistiyos/followers","following_url":"https://api.github.com/users/vistiyos/following{/other_user}","gists_url":"https://api.github.com/users/vistiyos/gists{/gist_id}","starred_url":"https://api.github.com/users/vistiyos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vistiyos/subscriptions","organizations_url":"https://api.github.com/users/vistiyos/orgs","repos_url":"https://api.github.com/users/vistiyos/repos","events_url":"https://api.github.com/users/vistiyos/events{/privacy}","received_events_url":"https://api.github.com/users/vistiyos/received_events","type":"User","site_admin":false},"body":"This function receives the language name ( how appears in the language list) and it installs the language if exists. This function also refresh the language list to ensure that the language is there.","created_at":"2015-07-21T08:16:44Z","updated_at":"2015-07-21T08:22:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ffca225c24e733ec20a08f729a1516c8b763f05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32/commits","review_comments_url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32/comments","review_comment_url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla-projects/joomla-browser/issues/32/comments","statuses_url":"https://api.github.com/repos/joomla-projects/joomla-browser/statuses/6f27d331d84719b0b58653f82212645823205bae","head":{"label":"vistiyos:develop","ref":"develop","sha":"6f27d331d84719b0b58653f82212645823205bae","user":{"login":"vistiyos","id":822629,"avatar_url":"https://avatars.githubusercontent.com/u/822629?v=3","gravatar_id":"","url":"https://api.github.com/users/vistiyos","html_url":"https://github.com/vistiyos","followers_url":"https://api.github.com/users/vistiyos/followers","following_url":"https://api.github.com/users/vistiyos/following{/other_user}","gists_url":"https://api.github.com/users/vistiyos/gists{/gist_id}","starred_url":"https://api.github.com/users/vistiyos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vistiyos/subscriptions","organizations_url":"https://api.github.com/users/vistiyos/orgs","repos_url":"https://api.github.com/users/vistiyos/repos","events_url":"https://api.github.com/users/vistiyos/events{/privacy}","received_events_url":"https://api.github.com/users/vistiyos/received_events","type":"User","site_admin":false},"repo":{"id":39430199,"name":"joomla-browser","full_name":"vistiyos/joomla-browser","owner":{"login":"vistiyos","id":822629,"avatar_url":"https://avatars.githubusercontent.com/u/822629?v=3","gravatar_id":"","url":"https://api.github.com/users/vistiyos","html_url":"https://github.com/vistiyos","followers_url":"https://api.github.com/users/vistiyos/followers","following_url":"https://api.github.com/users/vistiyos/following{/other_user}","gists_url":"https://api.github.com/users/vistiyos/gists{/gist_id}","starred_url":"https://api.github.com/users/vistiyos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vistiyos/subscriptions","organizations_url":"https://api.github.com/users/vistiyos/orgs","repos_url":"https://api.github.com/users/vistiyos/repos","events_url":"https://api.github.com/users/vistiyos/events{/privacy}","received_events_url":"https://api.github.com/users/vistiyos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vistiyos/joomla-browser","description":"An extended Webdriver Browser to navigate through Joomla sites with Codeception","fork":true,"url":"https://api.github.com/repos/vistiyos/joomla-browser","forks_url":"https://api.github.com/repos/vistiyos/joomla-browser/forks","keys_url":"https://api.github.com/repos/vistiyos/joomla-browser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vistiyos/joomla-browser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vistiyos/joomla-browser/teams","hooks_url":"https://api.github.com/repos/vistiyos/joomla-browser/hooks","issue_events_url":"https://api.github.com/repos/vistiyos/joomla-browser/issues/events{/number}","events_url":"https://api.github.com/repos/vistiyos/joomla-browser/events","assignees_url":"https://api.github.com/repos/vistiyos/joomla-browser/assignees{/user}","branches_url":"https://api.github.com/repos/vistiyos/joomla-browser/branches{/branch}","tags_url":"https://api.github.com/repos/vistiyos/joomla-browser/tags","blobs_url":"https://api.github.com/repos/vistiyos/joomla-browser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vistiyos/joomla-browser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vistiyos/joomla-browser/git/refs{/sha}","trees_url":"https://api.github.com/repos/vistiyos/joomla-browser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vistiyos/joomla-browser/statuses/{sha}","languages_url":"https://api.github.com/repos/vistiyos/joomla-browser/languages","stargazers_url":"https://api.github.com/repos/vistiyos/joomla-browser/stargazers","contributors_url":"https://api.github.com/repos/vistiyos/joomla-browser/contributors","subscribers_url":"https://api.github.com/repos/vistiyos/joomla-browser/subscribers","subscription_url":"https://api.github.com/repos/vistiyos/joomla-browser/subscription","commits_url":"https://api.github.com/repos/vistiyos/joomla-browser/commits{/sha}","git_commits_url":"https://api.github.com/repos/vistiyos/joomla-browser/git/commits{/sha}","comments_url":"https://api.github.com/repos/vistiyos/joomla-browser/comments{/number}","issue_comment_url":"https://api.github.com/repos/vistiyos/joomla-browser/issues/comments{/number}","contents_url":"https://api.github.com/repos/vistiyos/joomla-browser/contents/{+path}","compare_url":"https://api.github.com/repos/vistiyos/joomla-browser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vistiyos/joomla-browser/merges","archive_url":"https://api.github.com/repos/vistiyos/joomla-browser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vistiyos/joomla-browser/downloads","issues_url":"https://api.github.com/repos/vistiyos/joomla-browser/issues{/number}","pulls_url":"https://api.github.com/repos/vistiyos/joomla-browser/pulls{/number}","milestones_url":"https://api.github.com/repos/vistiyos/joomla-browser/milestones{/number}","notifications_url":"https://api.github.com/repos/vistiyos/joomla-browser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vistiyos/joomla-browser/labels{/name}","releases_url":"https://api.github.com/repos/vistiyos/joomla-browser/releases{/id}","created_at":"2015-07-21T07:14:51Z","updated_at":"2015-07-21T07:14:52Z","pushed_at":"2015-07-21T08:14:27Z","git_url":"git://github.com/vistiyos/joomla-browser.git","ssh_url":"git@github.com:vistiyos/joomla-browser.git","clone_url":"https://github.com/vistiyos/joomla-browser.git","svn_url":"https://github.com/vistiyos/joomla-browser","homepage":null,"size":547,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"joomla-projects:develop","ref":"develop","sha":"4404f3884a7f7ff93a179cfbff7ffe65f58b676d","user":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":34443186,"name":"joomla-browser","full_name":"joomla-projects/joomla-browser","owner":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-projects/joomla-browser","description":"An extended Webdriver Browser to navigate through Joomla sites with Codeception","fork":false,"url":"https://api.github.com/repos/joomla-projects/joomla-browser","forks_url":"https://api.github.com/repos/joomla-projects/joomla-browser/forks","keys_url":"https://api.github.com/repos/joomla-projects/joomla-browser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-projects/joomla-browser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-projects/joomla-browser/teams","hooks_url":"https://api.github.com/repos/joomla-projects/joomla-browser/hooks","issue_events_url":"https://api.github.com/repos/joomla-projects/joomla-browser/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-projects/joomla-browser/events","assignees_url":"https://api.github.com/repos/joomla-projects/joomla-browser/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-projects/joomla-browser/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-projects/joomla-browser/tags","blobs_url":"https://api.github.com/repos/joomla-projects/joomla-browser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-projects/joomla-browser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-projects/joomla-browser/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-projects/joomla-browser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-projects/joomla-browser/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-projects/joomla-browser/languages","stargazers_url":"https://api.github.com/repos/joomla-projects/joomla-browser/stargazers","contributors_url":"https://api.github.com/repos/joomla-projects/joomla-browser/contributors","subscribers_url":"https://api.github.com/repos/joomla-projects/joomla-browser/subscribers","subscription_url":"https://api.github.com/repos/joomla-projects/joomla-browser/subscription","commits_url":"https://api.github.com/repos/joomla-projects/joomla-browser/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-projects/joomla-browser/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-projects/joomla-browser/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-projects/joomla-browser/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-projects/joomla-browser/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-projects/joomla-browser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-projects/joomla-browser/merges","archive_url":"https://api.github.com/repos/joomla-projects/joomla-browser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-projects/joomla-browser/downloads","issues_url":"https://api.github.com/repos/joomla-projects/joomla-browser/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-projects/joomla-browser/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-projects/joomla-browser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-projects/joomla-browser/labels{/name}","releases_url":"https://api.github.com/repos/joomla-projects/joomla-browser/releases{/id}","created_at":"2015-04-23T08:13:58Z","updated_at":"2015-05-12T03:18:49Z","pushed_at":"2015-07-21T08:16:44Z","git_url":"git://github.com/joomla-projects/joomla-browser.git","ssh_url":"git@github.com:joomla-projects/joomla-browser.git","clone_url":"https://github.com/joomla-projects/joomla-browser.git","svn_url":"https://github.com/joomla-projects/joomla-browser","homepage":null,"size":547,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32"},"html":{"href":"https://github.com/joomla-projects/joomla-browser/pull/32"},"issue":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/issues/32"},"comments":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/joomla-projects/joomla-browser/statuses/6f27d331d84719b0b58653f82212645823205bae"}}}}