{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/33025786","id":33025786,"diff_hunk":"@@ -0,0 +1,71 @@\n+package com.wikia.webdriver.testcases.flagTests;\n+\n+import com.wikia.webdriver.common.properties.Credentials;\n+import com.wikia.webdriver.common.templates.NewTestTemplate;\n+import com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject;\n+\n+import org.openqa.selenium.By;\n+import org.openqa.selenium.WebElement;\n+import org.testng.annotations.Test;\n+\n+import java.util.ArrayList;\n+import java.util.Iterator;\n+import java.util.List;\n+\n+/**\n+ * Created by Mariusz on 2015-06-08.\n+ */\n+public class flagTest extends NewTestTemplate {\n+    Credentials credentials = config.getCredentials();\n+\n+\n+    @Test(groups = {\"addFlag_01\"})\n+\n+    public void addFlag_01() {\n+\n+        List list = new ArrayList();\n+        WikiBasePageObject base = new WikiBasePageObject(driver);\n+\n+        base.logInCookie(credentials.userNameStaff, credentials.passwordStaff, wikiURL);\n+\n+        //  WikiBasePageObject base = new WikiBasePageObject(driver);\n+        wikiURL = \"http://preview.runescape-test.wikia.com/wiki/Special:Random\";\n+        base.openWikiPage(wikiURL);\n+\n+        driver.findElement(\n+                By.cssSelector(\"#WikiaPageHeader > nav.wikia-menu-button > span.drop\"))\n+                .click();\n+        base.waitForElementByCss(\"#WikiaPageHeader > nav.wikia-menu-button > span.drop\");\n+        driver.findElement(By.id(\"ca-flags\")).click();\n+        base.waitForElementById(\"ca-flags\");","path":"src/test/java/com/wikia/webdriver/testcases/flagTests/flagTest.java","position":40,"original_position":40,"commit_id":"e9793d2b59c6c5a51b8aea8c505bd9a6ec9e0057","original_commit_id":"e9793d2b59c6c5a51b8aea8c505bd9a6ec9e0057","user":{"login":"RodriGomez","id":2337479,"avatar_url":"https://avatars.githubusercontent.com/u/2337479?v=3","gravatar_id":"","url":"https://api.github.com/users/RodriGomez","html_url":"https://github.com/RodriGomez","followers_url":"https://api.github.com/users/RodriGomez/followers","following_url":"https://api.github.com/users/RodriGomez/following{/other_user}","gists_url":"https://api.github.com/users/RodriGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/RodriGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RodriGomez/subscriptions","organizations_url":"https://api.github.com/users/RodriGomez/orgs","repos_url":"https://api.github.com/users/RodriGomez/repos","events_url":"https://api.github.com/users/RodriGomez/events{/privacy}","received_events_url":"https://api.github.com/users/RodriGomez/received_events","type":"User","site_admin":false},"body":"All CSS selectors should be defined in UI Mapping of a PageObject or ComponentObject class","created_at":"2015-06-23T09:54:40Z","updated_at":"2015-06-23T09:54:40Z","html_url":"https://github.com/Wikia/selenium-tests/pull/694#discussion_r33025786","pull_request_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694","_links":{"self":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments/33025786"},"html":{"href":"https://github.com/Wikia/selenium-tests/pull/694#discussion_r33025786"},"pull_request":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694","id":38106319,"html_url":"https://github.com/Wikia/selenium-tests/pull/694","diff_url":"https://github.com/Wikia/selenium-tests/pull/694.diff","patch_url":"https://github.com/Wikia/selenium-tests/pull/694.patch","issue_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/694","number":694,"state":"open","locked":false,"title":"New Flag Test","user":{"login":"MariuszCz","id":9019168,"avatar_url":"https://avatars.githubusercontent.com/u/9019168?v=3","gravatar_id":"","url":"https://api.github.com/users/MariuszCz","html_url":"https://github.com/MariuszCz","followers_url":"https://api.github.com/users/MariuszCz/followers","following_url":"https://api.github.com/users/MariuszCz/following{/other_user}","gists_url":"https://api.github.com/users/MariuszCz/gists{/gist_id}","starred_url":"https://api.github.com/users/MariuszCz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariuszCz/subscriptions","organizations_url":"https://api.github.com/users/MariuszCz/orgs","repos_url":"https://api.github.com/users/MariuszCz/repos","events_url":"https://api.github.com/users/MariuszCz/events{/privacy}","received_events_url":"https://api.github.com/users/MariuszCz/received_events","type":"User","site_admin":false},"body":"Test selects all the available flags and checks whether they are displayed on the page.","created_at":"2015-06-19T13:17:08Z","updated_at":"2015-06-23T09:54:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84a1e5f4f2ebda29c209808544a6b223c2dbfcd4","assignee":{"login":"ludwikkazmierczak","id":7136408,"avatar_url":"https://avatars.githubusercontent.com/u/7136408?v=3","gravatar_id":"","url":"https://api.github.com/users/ludwikkazmierczak","html_url":"https://github.com/ludwikkazmierczak","followers_url":"https://api.github.com/users/ludwikkazmierczak/followers","following_url":"https://api.github.com/users/ludwikkazmierczak/following{/other_user}","gists_url":"https://api.github.com/users/ludwikkazmierczak/gists{/gist_id}","starred_url":"https://api.github.com/users/ludwikkazmierczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludwikkazmierczak/subscriptions","organizations_url":"https://api.github.com/users/ludwikkazmierczak/orgs","repos_url":"https://api.github.com/users/ludwikkazmierczak/repos","events_url":"https://api.github.com/users/ludwikkazmierczak/events{/privacy}","received_events_url":"https://api.github.com/users/ludwikkazmierczak/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694/commits","review_comments_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694/comments","review_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/694/comments","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/e9793d2b59c6c5a51b8aea8c505bd9a6ec9e0057","head":{"label":"Wikia:flagTest","ref":"flagTest","sha":"e9793d2b59c6c5a51b8aea8c505bd9a6ec9e0057","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":6275065,"name":"selenium-tests","full_name":"Wikia/selenium-tests","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/selenium-tests","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/selenium-tests","forks_url":"https://api.github.com/repos/Wikia/selenium-tests/forks","keys_url":"https://api.github.com/repos/Wikia/selenium-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/selenium-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/selenium-tests/teams","hooks_url":"https://api.github.com/repos/Wikia/selenium-tests/hooks","issue_events_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/selenium-tests/events","assignees_url":"https://api.github.com/repos/Wikia/selenium-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/selenium-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/selenium-tests/tags","blobs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/selenium-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/selenium-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/selenium-tests/languages","stargazers_url":"https://api.github.com/repos/Wikia/selenium-tests/stargazers","contributors_url":"https://api.github.com/repos/Wikia/selenium-tests/contributors","subscribers_url":"https://api.github.com/repos/Wikia/selenium-tests/subscribers","subscription_url":"https://api.github.com/repos/Wikia/selenium-tests/subscription","commits_url":"https://api.github.com/repos/Wikia/selenium-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/selenium-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/selenium-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/selenium-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/selenium-tests/merges","archive_url":"https://api.github.com/repos/Wikia/selenium-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/selenium-tests/downloads","issues_url":"https://api.github.com/repos/Wikia/selenium-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/selenium-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/selenium-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/selenium-tests/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/selenium-tests/releases{/id}","created_at":"2012-10-18T08:06:11Z","updated_at":"2015-05-07T15:54:21Z","pushed_at":"2015-06-23T09:20:23Z","git_url":"git://github.com/Wikia/selenium-tests.git","ssh_url":"git@github.com:Wikia/selenium-tests.git","clone_url":"https://github.com/Wikia/selenium-tests.git","svn_url":"https://github.com/Wikia/selenium-tests","homepage":null,"size":201248,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"Wikia:master","ref":"master","sha":"7f5d4aaf427f9abf468cd2b9bd52e81eb00b23f4","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":6275065,"name":"selenium-tests","full_name":"Wikia/selenium-tests","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/selenium-tests","description":"","fork":false,"url":"https://api.github.com/repos/Wikia/selenium-tests","forks_url":"https://api.github.com/repos/Wikia/selenium-tests/forks","keys_url":"https://api.github.com/repos/Wikia/selenium-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/selenium-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/selenium-tests/teams","hooks_url":"https://api.github.com/repos/Wikia/selenium-tests/hooks","issue_events_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/selenium-tests/events","assignees_url":"https://api.github.com/repos/Wikia/selenium-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/selenium-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/selenium-tests/tags","blobs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/selenium-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/selenium-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/selenium-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/selenium-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/selenium-tests/languages","stargazers_url":"https://api.github.com/repos/Wikia/selenium-tests/stargazers","contributors_url":"https://api.github.com/repos/Wikia/selenium-tests/contributors","subscribers_url":"https://api.github.com/repos/Wikia/selenium-tests/subscribers","subscription_url":"https://api.github.com/repos/Wikia/selenium-tests/subscription","commits_url":"https://api.github.com/repos/Wikia/selenium-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/selenium-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/selenium-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/selenium-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/selenium-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/selenium-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/selenium-tests/merges","archive_url":"https://api.github.com/repos/Wikia/selenium-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/selenium-tests/downloads","issues_url":"https://api.github.com/repos/Wikia/selenium-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/selenium-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/selenium-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/selenium-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/selenium-tests/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/selenium-tests/releases{/id}","created_at":"2012-10-18T08:06:11Z","updated_at":"2015-05-07T15:54:21Z","pushed_at":"2015-06-23T09:20:23Z","git_url":"git://github.com/Wikia/selenium-tests.git","ssh_url":"git@github.com:Wikia/selenium-tests.git","clone_url":"https://github.com/Wikia/selenium-tests.git","svn_url":"https://github.com/Wikia/selenium-tests","homepage":null,"size":201248,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694"},"html":{"href":"https://github.com/Wikia/selenium-tests/pull/694"},"issue":{"href":"https://api.github.com/repos/Wikia/selenium-tests/issues/694"},"comments":{"href":"https://api.github.com/repos/Wikia/selenium-tests/issues/694/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/selenium-tests/pulls/694/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/selenium-tests/statuses/e9793d2b59c6c5a51b8aea8c505bd9a6ec9e0057"}}}}