{"action":"created","comment":{"url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/comments/140650441","pull_request_review_id":64755945,"id":140650441,"diff_hunk":"@@ -0,0 +1,65 @@\n+package pages;\n+\n+import base.PageBase;\n+import org.openqa.selenium.WebDriver;\n+import org.openqa.selenium.WebElement;\n+import org.openqa.selenium.support.FindBy;\n+import org.openqa.selenium.support.ui.ExpectedConditions;\n+import org.testng.Assert;\n+import utility.PropertyProvider;\n+\n+public class LoginPage extends PageBase {\n+\n+    public LoginPage(WebDriver driver) {\n+        super(driver);\n+    }\n+\n+    public static final String USER1_LOGIN = PropertyProvider.getProperty(\"username1.username\");\n+    public static final String USER2_LOGIN = PropertyProvider.getProperty(\"username2.username\");\n+    public static final String USER3_LOGIN = PropertyProvider.getProperty(\"username3.username\");\n+    public static final String PASSWORD = PropertyProvider.getProperty(\"password\");\n+\n+    @FindBy(css = \"#identifierId\")\n+    private WebElement loginField;\n+    @FindBy(css = \"#identifierNext\")\n+    private WebElement identifierButton;\n+    @FindBy(css = \"#password\")\n+    private WebElement passwordField;\n+    @FindBy(css = \"#passwordNext\")\n+    private WebElement passwordNext;\n+\n+    public MailPage login(String login, String password) {\n+        //wait.until(ExpectedConditions.visibilityOf(loginField));\n+        //loginField.clear();\n+        loginField.sendKeys(login);\n+        wait.until(ExpectedConditions.elementToBeClickable(identifierButton));\n+        identifierButton.click();\n+        wait.until(ExpectedConditions.visibilityOf(passwordField));\n+        passwordField.click();\n+        passwordField.sendKeys(password);\n+        wait.until(ExpectedConditions.elementToBeClickable(passwordNext));\n+        passwordNext.click();\n+        return new MailPage(driver);\n+    }\n+\n+    public MailPage loginAsUser1(){\n+        login(USER1_LOGIN, PASSWORD);\n+        return new MailPage(driver);\n+    }\n+\n+    public MailPage loginAsUser2(){\n+        login(USER2_LOGIN, PASSWORD);\n+        return new MailPage(driver);\n+    }\n+\n+    public MailPage loginAsUser3(){\n+        login(USER3_LOGIN, PASSWORD);\n+        return new MailPage(driver);\n+    }\n+\n+    public LoginPage checkSignOutSuccess() {\n+        Assert.assertTrue((driver.getTitle().toString().contains(\"Gmail\")));","path":"src/main/java/pages/LoginPage.java","position":61,"original_position":61,"commit_id":"059352fa2008f50b4b6dbadf53065ae69bc6ff49","original_commit_id":"059352fa2008f50b4b6dbadf53065ae69bc6ff49","user":{"login":"WGLife","id":7044778,"avatar_url":"https://avatars1.githubusercontent.com/u/7044778?v=4","gravatar_id":"","url":"https://api.github.com/users/WGLife","html_url":"https://github.com/WGLife","followers_url":"https://api.github.com/users/WGLife/followers","following_url":"https://api.github.com/users/WGLife/following{/other_user}","gists_url":"https://api.github.com/users/WGLife/gists{/gist_id}","starred_url":"https://api.github.com/users/WGLife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGLife/subscriptions","organizations_url":"https://api.github.com/users/WGLife/orgs","repos_url":"https://api.github.com/users/WGLife/repos","events_url":"https://api.github.com/users/WGLife/events{/privacy}","received_events_url":"https://api.github.com/users/WGLife/received_events","type":"User","site_admin":false},"body":"Add message on failure","created_at":"2017-09-24T08:28:23Z","updated_at":"2017-09-24T08:50:19Z","html_url":"https://github.com/ChristinaAstashkevich/FinalTask/pull/1#discussion_r140650441","pull_request_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/comments/140650441"},"html":{"href":"https://github.com/ChristinaAstashkevich/FinalTask/pull/1#discussion_r140650441"},"pull_request":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1","id":141325608,"html_url":"https://github.com/ChristinaAstashkevich/FinalTask/pull/1","diff_url":"https://github.com/ChristinaAstashkevich/FinalTask/pull/1.diff","patch_url":"https://github.com/ChristinaAstashkevich/FinalTask/pull/1.patch","issue_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/1","number":1,"state":"open","locked":false,"title":"adding FinalTask","user":{"login":"ChristinaAstashkevich","id":14868458,"avatar_url":"https://avatars3.githubusercontent.com/u/14868458?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristinaAstashkevich","html_url":"https://github.com/ChristinaAstashkevich","followers_url":"https://api.github.com/users/ChristinaAstashkevich/followers","following_url":"https://api.github.com/users/ChristinaAstashkevich/following{/other_user}","gists_url":"https://api.github.com/users/ChristinaAstashkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristinaAstashkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristinaAstashkevich/subscriptions","organizations_url":"https://api.github.com/users/ChristinaAstashkevich/orgs","repos_url":"https://api.github.com/users/ChristinaAstashkevich/repos","events_url":"https://api.github.com/users/ChristinaAstashkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ChristinaAstashkevich/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-15T14:33:43Z","updated_at":"2017-09-24T08:50:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ddac8b1d4c2e066636c8c2f3792fd12ab2ff71b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/1/comments","statuses_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/statuses/059352fa2008f50b4b6dbadf53065ae69bc6ff49","head":{"label":"ChristinaAstashkevich:FinalTask","ref":"FinalTask","sha":"059352fa2008f50b4b6dbadf53065ae69bc6ff49","user":{"login":"ChristinaAstashkevich","id":14868458,"avatar_url":"https://avatars3.githubusercontent.com/u/14868458?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristinaAstashkevich","html_url":"https://github.com/ChristinaAstashkevich","followers_url":"https://api.github.com/users/ChristinaAstashkevich/followers","following_url":"https://api.github.com/users/ChristinaAstashkevich/following{/other_user}","gists_url":"https://api.github.com/users/ChristinaAstashkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristinaAstashkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristinaAstashkevich/subscriptions","organizations_url":"https://api.github.com/users/ChristinaAstashkevich/orgs","repos_url":"https://api.github.com/users/ChristinaAstashkevich/repos","events_url":"https://api.github.com/users/ChristinaAstashkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ChristinaAstashkevich/received_events","type":"User","site_admin":false},"repo":{"id":103666382,"name":"FinalTask","full_name":"ChristinaAstashkevich/FinalTask","owner":{"login":"ChristinaAstashkevich","id":14868458,"avatar_url":"https://avatars3.githubusercontent.com/u/14868458?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristinaAstashkevich","html_url":"https://github.com/ChristinaAstashkevich","followers_url":"https://api.github.com/users/ChristinaAstashkevich/followers","following_url":"https://api.github.com/users/ChristinaAstashkevich/following{/other_user}","gists_url":"https://api.github.com/users/ChristinaAstashkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristinaAstashkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristinaAstashkevich/subscriptions","organizations_url":"https://api.github.com/users/ChristinaAstashkevich/orgs","repos_url":"https://api.github.com/users/ChristinaAstashkevich/repos","events_url":"https://api.github.com/users/ChristinaAstashkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ChristinaAstashkevich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChristinaAstashkevich/FinalTask","description":"GmaiTestsWithAllureRep","fork":false,"url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask","forks_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/forks","keys_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/teams","hooks_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/hooks","issue_events_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/events{/number}","events_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/events","assignees_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/assignees{/user}","branches_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/branches{/branch}","tags_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/tags","blobs_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/statuses/{sha}","languages_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/languages","stargazers_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/stargazers","contributors_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/contributors","subscribers_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/subscribers","subscription_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/subscription","commits_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/contents/{+path}","compare_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/merges","archive_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/downloads","issues_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues{/number}","pulls_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls{/number}","milestones_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/milestones{/number}","notifications_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/labels{/name}","releases_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/releases{/id}","deployments_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/deployments","created_at":"2017-09-15T14:28:31Z","updated_at":"2017-09-15T14:28:31Z","pushed_at":"2017-09-15T14:33:43Z","git_url":"git://github.com/ChristinaAstashkevich/FinalTask.git","ssh_url":"git@github.com:ChristinaAstashkevich/FinalTask.git","clone_url":"https://github.com/ChristinaAstashkevich/FinalTask.git","svn_url":"https://github.com/ChristinaAstashkevich/FinalTask","homepage":null,"size":5918,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ChristinaAstashkevich:master","ref":"master","sha":"4b2fba6a33632519d8db6ab002f8c9833022d133","user":{"login":"ChristinaAstashkevich","id":14868458,"avatar_url":"https://avatars3.githubusercontent.com/u/14868458?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristinaAstashkevich","html_url":"https://github.com/ChristinaAstashkevich","followers_url":"https://api.github.com/users/ChristinaAstashkevich/followers","following_url":"https://api.github.com/users/ChristinaAstashkevich/following{/other_user}","gists_url":"https://api.github.com/users/ChristinaAstashkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristinaAstashkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristinaAstashkevich/subscriptions","organizations_url":"https://api.github.com/users/ChristinaAstashkevich/orgs","repos_url":"https://api.github.com/users/ChristinaAstashkevich/repos","events_url":"https://api.github.com/users/ChristinaAstashkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ChristinaAstashkevich/received_events","type":"User","site_admin":false},"repo":{"id":103666382,"name":"FinalTask","full_name":"ChristinaAstashkevich/FinalTask","owner":{"login":"ChristinaAstashkevich","id":14868458,"avatar_url":"https://avatars3.githubusercontent.com/u/14868458?v=4","gravatar_id":"","url":"https://api.github.com/users/ChristinaAstashkevich","html_url":"https://github.com/ChristinaAstashkevich","followers_url":"https://api.github.com/users/ChristinaAstashkevich/followers","following_url":"https://api.github.com/users/ChristinaAstashkevich/following{/other_user}","gists_url":"https://api.github.com/users/ChristinaAstashkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristinaAstashkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristinaAstashkevich/subscriptions","organizations_url":"https://api.github.com/users/ChristinaAstashkevich/orgs","repos_url":"https://api.github.com/users/ChristinaAstashkevich/repos","events_url":"https://api.github.com/users/ChristinaAstashkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ChristinaAstashkevich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChristinaAstashkevich/FinalTask","description":"GmaiTestsWithAllureRep","fork":false,"url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask","forks_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/forks","keys_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/teams","hooks_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/hooks","issue_events_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/events{/number}","events_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/events","assignees_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/assignees{/user}","branches_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/branches{/branch}","tags_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/tags","blobs_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/statuses/{sha}","languages_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/languages","stargazers_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/stargazers","contributors_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/contributors","subscribers_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/subscribers","subscription_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/subscription","commits_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/contents/{+path}","compare_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/merges","archive_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/downloads","issues_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues{/number}","pulls_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls{/number}","milestones_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/milestones{/number}","notifications_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/labels{/name}","releases_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/releases{/id}","deployments_url":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/deployments","created_at":"2017-09-15T14:28:31Z","updated_at":"2017-09-15T14:28:31Z","pushed_at":"2017-09-15T14:33:43Z","git_url":"git://github.com/ChristinaAstashkevich/FinalTask.git","ssh_url":"git@github.com:ChristinaAstashkevich/FinalTask.git","clone_url":"https://github.com/ChristinaAstashkevich/FinalTask.git","svn_url":"https://github.com/ChristinaAstashkevich/FinalTask","homepage":null,"size":5918,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1"},"html":{"href":"https://github.com/ChristinaAstashkevich/FinalTask/pull/1"},"issue":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/1"},"comments":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ChristinaAstashkevich/FinalTask/statuses/059352fa2008f50b4b6dbadf53065ae69bc6ff49"}},"author_association":"OWNER"}}
{"actor":{"display_login":"WGLife"}}