{"action":"created","comment":{"url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments/67578248","id":67578248,"diff_hunk":"@@ -180,6 +180,26 @@ def choose_file(self, locator, file_path):\n                         % file_path)\n         self._element_find(locator, True, True).send_keys(file_path)\n \n+    def choose_multiple_files(self, locator, basePath=\"\",  *files):\n+        \"\"\"Inputs the `files` into file input field found by `locator`.\n+        This Keyword extend the Choose Files option to allow user to select multiple files\n+        (input type=files multiple).\n+        The file paths need to be specified for each file.\n+        Alternative is use basePath argument and then only files name.\n+        The file specified with `file_path` must be available on the same host\n+        where the Selenium Server is running.\n+        Example:\n+        | Choose Multiple Files | my_upload_field | /home/user/files/  |  trades.csv,trades.xsl,trades.doc |\n+        | Choose Multiple Files | my_upload_field |                    | /folder/trades.csv,/folder1/trades.xsl,/folder3/trades.doc |\n+        \"\"\"\n+        fileList = []\n+        for file in files:\n+            path_to_image = os.path.join(basePath, file)\n+            if not os.path.isfile(path_to_image):\n+                raise AssertionError(\"File '%s' does not exist on the local file system\" % path_to_image)\n+            fileList.append(path_to_image)\n+        self._element_find(locator, True, True).send_keys(\"\\n\".join(fileList))","path":"src/Selenium2Library/keywords/_formelement.py","position":22,"original_position":22,"commit_id":"21f3e481e09b08b577cc9f1084311f3ca09076db","original_commit_id":"21f3e481e09b08b577cc9f1084311f3ca09076db","user":{"login":"drobota","id":772155,"avatar_url":"https://avatars.githubusercontent.com/u/772155?v=3","gravatar_id":"","url":"https://api.github.com/users/drobota","html_url":"https://github.com/drobota","followers_url":"https://api.github.com/users/drobota/followers","following_url":"https://api.github.com/users/drobota/following{/other_user}","gists_url":"https://api.github.com/users/drobota/gists{/gist_id}","starred_url":"https://api.github.com/users/drobota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drobota/subscriptions","organizations_url":"https://api.github.com/users/drobota/orgs","repos_url":"https://api.github.com/users/drobota/repos","events_url":"https://api.github.com/users/drobota/events{/privacy}","received_events_url":"https://api.github.com/users/drobota/received_events","type":"User","site_admin":false},"body":"This wont work with marionette and other browser see https://github.com/mozilla/geckodriver/issues/98.\r\n","created_at":"2016-06-17T21:29:30Z","updated_at":"2016-06-17T21:29:30Z","html_url":"https://github.com/robotframework/Selenium2Library/pull/611#discussion_r67578248","pull_request_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611","_links":{"self":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments/67578248"},"html":{"href":"https://github.com/robotframework/Selenium2Library/pull/611#discussion_r67578248"},"pull_request":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611"}}},"pull_request":{"url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611","id":73346166,"html_url":"https://github.com/robotframework/Selenium2Library/pull/611","diff_url":"https://github.com/robotframework/Selenium2Library/pull/611.diff","patch_url":"https://github.com/robotframework/Selenium2Library/pull/611.patch","issue_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/611","number":611,"state":"open","locked":false,"title":"Added new keyword for multiple files upload","user":{"login":"VitoAlbano","id":7974125,"avatar_url":"https://avatars.githubusercontent.com/u/7974125?v=3","gravatar_id":"","url":"https://api.github.com/users/VitoAlbano","html_url":"https://github.com/VitoAlbano","followers_url":"https://api.github.com/users/VitoAlbano/followers","following_url":"https://api.github.com/users/VitoAlbano/following{/other_user}","gists_url":"https://api.github.com/users/VitoAlbano/gists{/gist_id}","starred_url":"https://api.github.com/users/VitoAlbano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitoAlbano/subscriptions","organizations_url":"https://api.github.com/users/VitoAlbano/orgs","repos_url":"https://api.github.com/users/VitoAlbano/repos","events_url":"https://api.github.com/users/VitoAlbano/events{/privacy}","received_events_url":"https://api.github.com/users/VitoAlbano/received_events","type":"User","site_admin":false},"body":"This is my proposal for manage via Selenium2Library the <input type=\"files\" multiple> element which allows you to select multiple files instead of only one.\r\n\r\nReferral to issue : #609 ","created_at":"2016-06-10T09:39:17Z","updated_at":"2016-06-17T21:29:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39cb0dc13194263b8c64173a530c477ff4083f3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611/commits","review_comments_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611/comments","review_comment_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/611/comments","statuses_url":"https://api.github.com/repos/robotframework/Selenium2Library/statuses/21f3e481e09b08b577cc9f1084311f3ca09076db","head":{"label":"VitoAlbano:new_keyword_choose_multple_files","ref":"new_keyword_choose_multple_files","sha":"21f3e481e09b08b577cc9f1084311f3ca09076db","user":{"login":"VitoAlbano","id":7974125,"avatar_url":"https://avatars.githubusercontent.com/u/7974125?v=3","gravatar_id":"","url":"https://api.github.com/users/VitoAlbano","html_url":"https://github.com/VitoAlbano","followers_url":"https://api.github.com/users/VitoAlbano/followers","following_url":"https://api.github.com/users/VitoAlbano/following{/other_user}","gists_url":"https://api.github.com/users/VitoAlbano/gists{/gist_id}","starred_url":"https://api.github.com/users/VitoAlbano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitoAlbano/subscriptions","organizations_url":"https://api.github.com/users/VitoAlbano/orgs","repos_url":"https://api.github.com/users/VitoAlbano/repos","events_url":"https://api.github.com/users/VitoAlbano/events{/privacy}","received_events_url":"https://api.github.com/users/VitoAlbano/received_events","type":"User","site_admin":false},"repo":{"id":60784170,"name":"Selenium2Library","full_name":"VitoAlbano/Selenium2Library","owner":{"login":"VitoAlbano","id":7974125,"avatar_url":"https://avatars.githubusercontent.com/u/7974125?v=3","gravatar_id":"","url":"https://api.github.com/users/VitoAlbano","html_url":"https://github.com/VitoAlbano","followers_url":"https://api.github.com/users/VitoAlbano/followers","following_url":"https://api.github.com/users/VitoAlbano/following{/other_user}","gists_url":"https://api.github.com/users/VitoAlbano/gists{/gist_id}","starred_url":"https://api.github.com/users/VitoAlbano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitoAlbano/subscriptions","organizations_url":"https://api.github.com/users/VitoAlbano/orgs","repos_url":"https://api.github.com/users/VitoAlbano/repos","events_url":"https://api.github.com/users/VitoAlbano/events{/privacy}","received_events_url":"https://api.github.com/users/VitoAlbano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitoAlbano/Selenium2Library","description":"Web testing library for Robot Framework","fork":true,"url":"https://api.github.com/repos/VitoAlbano/Selenium2Library","forks_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/forks","keys_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/teams","hooks_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/hooks","issue_events_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/issues/events{/number}","events_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/events","assignees_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/assignees{/user}","branches_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/branches{/branch}","tags_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/tags","blobs_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/statuses/{sha}","languages_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/languages","stargazers_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/stargazers","contributors_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/contributors","subscribers_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/subscribers","subscription_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/subscription","commits_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/contents/{+path}","compare_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/merges","archive_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/downloads","issues_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/issues{/number}","pulls_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/pulls{/number}","milestones_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/milestones{/number}","notifications_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/labels{/name}","releases_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/releases{/id}","deployments_url":"https://api.github.com/repos/VitoAlbano/Selenium2Library/deployments","created_at":"2016-06-09T15:11:27Z","updated_at":"2016-06-09T15:11:28Z","pushed_at":"2016-06-10T09:36:16Z","git_url":"git://github.com/VitoAlbano/Selenium2Library.git","ssh_url":"git@github.com:VitoAlbano/Selenium2Library.git","clone_url":"https://github.com/VitoAlbano/Selenium2Library.git","svn_url":"https://github.com/VitoAlbano/Selenium2Library","homepage":"","size":110759,"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":"robotframework:master","ref":"master","sha":"3f47202b438d450519099afe240597f02dc0305e","user":{"login":"robotframework","id":574284,"avatar_url":"https://avatars.githubusercontent.com/u/574284?v=3","gravatar_id":"","url":"https://api.github.com/users/robotframework","html_url":"https://github.com/robotframework","followers_url":"https://api.github.com/users/robotframework/followers","following_url":"https://api.github.com/users/robotframework/following{/other_user}","gists_url":"https://api.github.com/users/robotframework/gists{/gist_id}","starred_url":"https://api.github.com/users/robotframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotframework/subscriptions","organizations_url":"https://api.github.com/users/robotframework/orgs","repos_url":"https://api.github.com/users/robotframework/repos","events_url":"https://api.github.com/users/robotframework/events{/privacy}","received_events_url":"https://api.github.com/users/robotframework/received_events","type":"Organization","site_admin":false},"repo":{"id":2625205,"name":"Selenium2Library","full_name":"robotframework/Selenium2Library","owner":{"login":"robotframework","id":574284,"avatar_url":"https://avatars.githubusercontent.com/u/574284?v=3","gravatar_id":"","url":"https://api.github.com/users/robotframework","html_url":"https://github.com/robotframework","followers_url":"https://api.github.com/users/robotframework/followers","following_url":"https://api.github.com/users/robotframework/following{/other_user}","gists_url":"https://api.github.com/users/robotframework/gists{/gist_id}","starred_url":"https://api.github.com/users/robotframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotframework/subscriptions","organizations_url":"https://api.github.com/users/robotframework/orgs","repos_url":"https://api.github.com/users/robotframework/repos","events_url":"https://api.github.com/users/robotframework/events{/privacy}","received_events_url":"https://api.github.com/users/robotframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/robotframework/Selenium2Library","description":"Web testing library for Robot Framework","fork":false,"url":"https://api.github.com/repos/robotframework/Selenium2Library","forks_url":"https://api.github.com/repos/robotframework/Selenium2Library/forks","keys_url":"https://api.github.com/repos/robotframework/Selenium2Library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robotframework/Selenium2Library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robotframework/Selenium2Library/teams","hooks_url":"https://api.github.com/repos/robotframework/Selenium2Library/hooks","issue_events_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/events{/number}","events_url":"https://api.github.com/repos/robotframework/Selenium2Library/events","assignees_url":"https://api.github.com/repos/robotframework/Selenium2Library/assignees{/user}","branches_url":"https://api.github.com/repos/robotframework/Selenium2Library/branches{/branch}","tags_url":"https://api.github.com/repos/robotframework/Selenium2Library/tags","blobs_url":"https://api.github.com/repos/robotframework/Selenium2Library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robotframework/Selenium2Library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robotframework/Selenium2Library/git/refs{/sha}","trees_url":"https://api.github.com/repos/robotframework/Selenium2Library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robotframework/Selenium2Library/statuses/{sha}","languages_url":"https://api.github.com/repos/robotframework/Selenium2Library/languages","stargazers_url":"https://api.github.com/repos/robotframework/Selenium2Library/stargazers","contributors_url":"https://api.github.com/repos/robotframework/Selenium2Library/contributors","subscribers_url":"https://api.github.com/repos/robotframework/Selenium2Library/subscribers","subscription_url":"https://api.github.com/repos/robotframework/Selenium2Library/subscription","commits_url":"https://api.github.com/repos/robotframework/Selenium2Library/commits{/sha}","git_commits_url":"https://api.github.com/repos/robotframework/Selenium2Library/git/commits{/sha}","comments_url":"https://api.github.com/repos/robotframework/Selenium2Library/comments{/number}","issue_comment_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/comments{/number}","contents_url":"https://api.github.com/repos/robotframework/Selenium2Library/contents/{+path}","compare_url":"https://api.github.com/repos/robotframework/Selenium2Library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robotframework/Selenium2Library/merges","archive_url":"https://api.github.com/repos/robotframework/Selenium2Library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robotframework/Selenium2Library/downloads","issues_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues{/number}","pulls_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls{/number}","milestones_url":"https://api.github.com/repos/robotframework/Selenium2Library/milestones{/number}","notifications_url":"https://api.github.com/repos/robotframework/Selenium2Library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robotframework/Selenium2Library/labels{/name}","releases_url":"https://api.github.com/repos/robotframework/Selenium2Library/releases{/id}","deployments_url":"https://api.github.com/repos/robotframework/Selenium2Library/deployments","created_at":"2011-10-22T08:01:34Z","updated_at":"2016-06-17T06:49:36Z","pushed_at":"2016-06-15T18:52:44Z","git_url":"git://github.com/robotframework/Selenium2Library.git","ssh_url":"git@github.com:robotframework/Selenium2Library.git","clone_url":"https://github.com/robotframework/Selenium2Library.git","svn_url":"https://github.com/robotframework/Selenium2Library","homepage":"","size":112555,"stargazers_count":304,"watchers_count":304,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":280,"mirror_url":null,"open_issues_count":137,"forks":280,"open_issues":137,"watchers":304,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611"},"html":{"href":"https://github.com/robotframework/Selenium2Library/pull/611"},"issue":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/issues/611"},"comments":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/issues/611/comments"},"review_comments":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611/comments"},"review_comment":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/611/commits"},"statuses":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/statuses/21f3e481e09b08b577cc9f1084311f3ca09076db"}}}}
{"actor":{"display_login":"drobota"}}