{"action":"created","comment":{"url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments/39354974","id":39354974,"diff_hunk":"@@ -38,11 +39,42 @@ Capture page screenshot to custom root directory\n     [Documentation]    Capture page screenshot to custom root directory\n     [Setup]    Remove Directory    ${OUTPUTDIR}/custom-root    recursive\n     Set Screenshot Directory    ${OUTPUTDIR}/custom-root\n-    Capture Page Screenshot    custom-root-screenshot.png\n+    ${file} =    Capture Page Screenshot    custom-root-screenshot.png\n     File Should Exist    ${OUTPUTDIR}/custom-root/custom-root-screenshot.png\n+    Should Be Equal    ${file}    ${OUTPUTDIR}${/}custom-root${/}custom-root-screenshot.png\n \n Ensure screenshot captures revert to default root directory\n     [Documentation]    Ensure screenshot captures revert to default root directory\n     [Setup]    Remove Files    ${OUTPUTDIR}/default-root-screenshot.png\n     Capture Page Screenshot    default-root-screenshot.png\n     File Should Exist    ${OUTPUTDIR}/default-root-screenshot.png\n+\n+Capture page screenshot with unique index\n+    [Setup]    Remove Directory    ${OUTPUTDIR}${/}screenshot-and-index    recursive\n+    ${file1} =    Capture Page Screenshot    ${OUTPUTDIR}${/}screenshot-and-index${/}other-{index}-name.png\n+    ${file2} =    Capture Page Screenshot    ${OUTPUTDIR}${/}screenshot-and-index${/}some-other-name-{index}.png\n+    ${file3} =    Capture Page Screenshot    ${OUTPUTDIR}${/}screenshot-and-index${/}other-{index}-name.png\n+    File Should Exist    ${OUTPUTDIR}${/}screenshot-and-index${/}other-1-name.png\n+    Should Be Equal    ${file1}    ${OUTPUTDIR}${/}screenshot-and-index${/}other-1-name.png\n+    File Should Exist    ${OUTPUTDIR}${/}screenshot-and-index${/}some-other-name-1.png\n+    Should Be Equal    ${file2}    ${OUTPUTDIR}${/}screenshot-and-index${/}some-other-name-1.png\n+    File Should Exist    ${OUTPUTDIR}${/}screenshot-and-index${/}other-2-name.png\n+    Should Be Equal    ${file3}    ${OUTPUTDIR}${/}screenshot-and-index${/}other-2-name.png\n+\n+Capturing a page screenshot with two indexes should not cause an error\n+    ${file} =    Capture Page Screenshot    ${OUTPUTDIR}${/}screenshot-and-index${/}two-{index}-in-{index}-name.png\n+    File Should Exist    ${OUTPUTDIR}${/}screenshot-and-index${/}two-1-in-1-name.png\n+    Should Be Equal    ${file}    ${OUTPUTDIR}${/}screenshot-and-index${/}two-1-in-1-name.png\n+\n+Capture page screenshot whith index formatting\n+    Capture Page Screenshot    ${OUTPUTDIR}${/}screenshot-and-index${/}format-{index:06}-name.png\n+    Capture Page Screenshot    ${OUTPUTDIR}${/}screenshot-and-index${/}format-{index:06}-name.png\n+    File Should Exist    ${OUTPUTDIR}${/}screenshot-and-index${/}format-000001-name.png\n+    File Should Exist    ${OUTPUTDIR}${/}screenshot-and-index${/}format-000002-name.png\n+\n+Capture page screenshot with braces should now be doupled","path":"test/acceptance/keywords/screenshots.robot","position":50,"original_position":50,"commit_id":"364b3e3c313a6a6bf0c346e3d899722b81dd2675","original_commit_id":"364b3e3c313a6a6bf0c346e3d899722b81dd2675","user":{"login":"zephraph","id":3087225,"avatar_url":"https://avatars.githubusercontent.com/u/3087225?v=3","gravatar_id":"","url":"https://api.github.com/users/zephraph","html_url":"https://github.com/zephraph","followers_url":"https://api.github.com/users/zephraph/followers","following_url":"https://api.github.com/users/zephraph/following{/other_user}","gists_url":"https://api.github.com/users/zephraph/gists{/gist_id}","starred_url":"https://api.github.com/users/zephraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephraph/subscriptions","organizations_url":"https://api.github.com/users/zephraph/orgs","repos_url":"https://api.github.com/users/zephraph/repos","events_url":"https://api.github.com/users/zephraph/events{/privacy}","received_events_url":"https://api.github.com/users/zephraph/received_events","type":"User","site_admin":false},"body":"Perhaps rename this to `Capture page screenshot with escaped braces`. Current title doesn't make sense to me. ","created_at":"2015-09-14T00:45:13Z","updated_at":"2015-09-14T00:45:13Z","html_url":"https://github.com/robotframework/Selenium2Library/pull/504#discussion_r39354974","pull_request_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504","_links":{"self":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments/39354974"},"html":{"href":"https://github.com/robotframework/Selenium2Library/pull/504#discussion_r39354974"},"pull_request":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504"}}},"pull_request":{"url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504","id":44146070,"html_url":"https://github.com/robotframework/Selenium2Library/pull/504","diff_url":"https://github.com/robotframework/Selenium2Library/pull/504.diff","patch_url":"https://github.com/robotframework/Selenium2Library/pull/504.patch","issue_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/504","number":504,"state":"open","locked":false,"title":"Using Capture Screenshot with %d in filename","user":{"login":"aaltat","id":2665023,"avatar_url":"https://avatars.githubusercontent.com/u/2665023?v=3","gravatar_id":"","url":"https://api.github.com/users/aaltat","html_url":"https://github.com/aaltat","followers_url":"https://api.github.com/users/aaltat/followers","following_url":"https://api.github.com/users/aaltat/following{/other_user}","gists_url":"https://api.github.com/users/aaltat/gists{/gist_id}","starred_url":"https://api.github.com/users/aaltat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaltat/subscriptions","organizations_url":"https://api.github.com/users/aaltat/orgs","repos_url":"https://api.github.com/users/aaltat/repos","events_url":"https://api.github.com/users/aaltat/events{/privacy}","received_events_url":"https://api.github.com/users/aaltat/received_events","type":"User","site_admin":false},"body":"This commit enhances the Capture Screenshot keyword to support\r\ninternal running counter also when filename is not None. The place\r\nof the counter is indicated with %d character.\r\n\r\nAlso the absolute path of the screenshot filename is always returned\r\nby the keyword.\r\n\r\nAlso made small drive by refactoring to follow pep8 better.  ","created_at":"2015-09-03T19:18:52Z","updated_at":"2015-09-14T00:45:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85c80b081ada623f25fd4e2808121850f4d70594","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504/commits","review_comments_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504/comments","review_comment_url":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/504/comments","statuses_url":"https://api.github.com/repos/robotframework/Selenium2Library/statuses/364b3e3c313a6a6bf0c346e3d899722b81dd2675","head":{"label":"aaltat:screen_shot_with_prosent_index","ref":"screen_shot_with_prosent_index","sha":"364b3e3c313a6a6bf0c346e3d899722b81dd2675","user":{"login":"aaltat","id":2665023,"avatar_url":"https://avatars.githubusercontent.com/u/2665023?v=3","gravatar_id":"","url":"https://api.github.com/users/aaltat","html_url":"https://github.com/aaltat","followers_url":"https://api.github.com/users/aaltat/followers","following_url":"https://api.github.com/users/aaltat/following{/other_user}","gists_url":"https://api.github.com/users/aaltat/gists{/gist_id}","starred_url":"https://api.github.com/users/aaltat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaltat/subscriptions","organizations_url":"https://api.github.com/users/aaltat/orgs","repos_url":"https://api.github.com/users/aaltat/repos","events_url":"https://api.github.com/users/aaltat/events{/privacy}","received_events_url":"https://api.github.com/users/aaltat/received_events","type":"User","site_admin":false},"repo":{"id":6444781,"name":"robotframework-selenium2library","full_name":"aaltat/robotframework-selenium2library","owner":{"login":"aaltat","id":2665023,"avatar_url":"https://avatars.githubusercontent.com/u/2665023?v=3","gravatar_id":"","url":"https://api.github.com/users/aaltat","html_url":"https://github.com/aaltat","followers_url":"https://api.github.com/users/aaltat/followers","following_url":"https://api.github.com/users/aaltat/following{/other_user}","gists_url":"https://api.github.com/users/aaltat/gists{/gist_id}","starred_url":"https://api.github.com/users/aaltat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaltat/subscriptions","organizations_url":"https://api.github.com/users/aaltat/orgs","repos_url":"https://api.github.com/users/aaltat/repos","events_url":"https://api.github.com/users/aaltat/events{/privacy}","received_events_url":"https://api.github.com/users/aaltat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaltat/robotframework-selenium2library","description":"Web testing library for Robot Framework","fork":true,"url":"https://api.github.com/repos/aaltat/robotframework-selenium2library","forks_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/forks","keys_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/teams","hooks_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/hooks","issue_events_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/issues/events{/number}","events_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/events","assignees_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/assignees{/user}","branches_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/branches{/branch}","tags_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/tags","blobs_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/statuses/{sha}","languages_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/languages","stargazers_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/stargazers","contributors_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/contributors","subscribers_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/subscribers","subscription_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/subscription","commits_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/contents/{+path}","compare_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/merges","archive_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/downloads","issues_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/issues{/number}","pulls_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/pulls{/number}","milestones_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/milestones{/number}","notifications_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/labels{/name}","releases_url":"https://api.github.com/repos/aaltat/robotframework-selenium2library/releases{/id}","created_at":"2012-10-29T17:43:51Z","updated_at":"2015-06-07T17:59:09Z","pushed_at":"2015-09-13T18:32:08Z","git_url":"git://github.com/aaltat/robotframework-selenium2library.git","ssh_url":"git@github.com:aaltat/robotframework-selenium2library.git","clone_url":"https://github.com/aaltat/robotframework-selenium2library.git","svn_url":"https://github.com/aaltat/robotframework-selenium2library","homepage":"","size":110853,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"5a1594b6dc0f78db6f84bdd4b45d33739d343c58","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}","created_at":"2011-10-22T08:01:34Z","updated_at":"2015-09-10T06:54:26Z","pushed_at":"2015-09-13T22:41:07Z","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":113547,"stargazers_count":229,"watchers_count":229,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":213,"mirror_url":null,"open_issues_count":121,"forks":213,"open_issues":121,"watchers":229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504"},"html":{"href":"https://github.com/robotframework/Selenium2Library/pull/504"},"issue":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/issues/504"},"comments":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/issues/504/comments"},"review_comments":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504/comments"},"review_comment":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/pulls/504/commits"},"statuses":{"href":"https://api.github.com/repos/robotframework/Selenium2Library/statuses/364b3e3c313a6a6bf0c346e3d899722b81dd2675"}}}}