{"action":"created","comment":{"url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/comments/60862382","id":60862382,"diff_hunk":"@@ -0,0 +1,129 @@\n+import time\n+import unittest\n+from threading import Thread\n+from unittest import TestCase\n+from selenium.webdriver.common.by import By\n+\n+from selenium import webdriver\n+from selenium.webdriver.support import expected_conditions as EC\n+from selenium.webdriver.support.ui import WebDriverWait\n+\n+\n+class TestGmailAuth(TestCase):\n+    def setUp(self):\n+        self.driver = webdriver.Firefox()\n+        self.driver.get(\"https://mail.google.com/\")\n+        self.driver.implicitly_wait(5)\n+\n+    def wait_captcha_img(self, driver):\n+        time.sleep(1)\n+        WebDriverWait(driver, 10).until(\n+            EC.visibility_of_element_located((By.CLASS_NAME, 'captcha-box'))\n+        )\n+    def test_email_captcha(self):\n+        \"\"\"\n+        Название : Проверка появления поля капчи при вводе e-mail\n+\n+        Шаги :\n+        1.Вводим неверные e-mail и подтверждаем ввод пока не появиться поле капчи\n+\n+        Тест пройден:\n+        Появляется поле ввода капчи\n+\n+        \"\"\"\n+        driver = self.driver\n+        email = driver.find_element_by_name(\"Email\")\n+        email.send_keys(\"sndb11\")\n+        captcha = self.driver.find_element_by_id(\"captcha-img\")\n+        t1 = Thread(target=self.wait_captcha_img, args=(driver,))\n+        t1.start()\n+        while (not captcha.is_displayed()):\n+            email.send_keys(\"a\")\n+            email.submit()","path":"main.py","position":42,"original_position":42,"commit_id":"d631ccce147cd0e6f37fc1624636a403cdf1ad13","original_commit_id":"d631ccce147cd0e6f37fc1624636a403cdf1ad13","user":{"login":"skyline-gleb","id":4970194,"avatar_url":"https://avatars.githubusercontent.com/u/4970194?v=3","gravatar_id":"","url":"https://api.github.com/users/skyline-gleb","html_url":"https://github.com/skyline-gleb","followers_url":"https://api.github.com/users/skyline-gleb/followers","following_url":"https://api.github.com/users/skyline-gleb/following{/other_user}","gists_url":"https://api.github.com/users/skyline-gleb/gists{/gist_id}","starred_url":"https://api.github.com/users/skyline-gleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyline-gleb/subscriptions","organizations_url":"https://api.github.com/users/skyline-gleb/orgs","repos_url":"https://api.github.com/users/skyline-gleb/repos","events_url":"https://api.github.com/users/skyline-gleb/events{/privacy}","received_events_url":"https://api.github.com/users/skyline-gleb/received_events","type":"User","site_admin":false},"body":"и вновь в коде бесконечный цикл","created_at":"2016-04-25T04:48:00Z","updated_at":"2016-04-25T04:48:00Z","html_url":"https://github.com/2gisprojectT/lesson_8_homework/pull/9#discussion_r60862382","pull_request_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/comments/60862382"},"html":{"href":"https://github.com/2gisprojectT/lesson_8_homework/pull/9#discussion_r60862382"},"pull_request":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9","id":67091026,"html_url":"https://github.com/2gisprojectT/lesson_8_homework/pull/9","diff_url":"https://github.com/2gisprojectT/lesson_8_homework/pull/9.diff","patch_url":"https://github.com/2gisprojectT/lesson_8_homework/pull/9.patch","issue_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues/9","number":9,"state":"open","locked":false,"title":"Выполнил ДЗ №8","user":{"login":"DoctorVra4","id":15700926,"avatar_url":"https://avatars.githubusercontent.com/u/15700926?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorVra4","html_url":"https://github.com/DoctorVra4","followers_url":"https://api.github.com/users/DoctorVra4/followers","following_url":"https://api.github.com/users/DoctorVra4/following{/other_user}","gists_url":"https://api.github.com/users/DoctorVra4/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorVra4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorVra4/subscriptions","organizations_url":"https://api.github.com/users/DoctorVra4/orgs","repos_url":"https://api.github.com/users/DoctorVra4/repos","events_url":"https://api.github.com/users/DoctorVra4/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorVra4/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-19T21:14:19Z","updated_at":"2016-04-25T04:48:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37ac9a44f4cf1eae292ef5d15722a99269bb5698","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9/commits","review_comments_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9/comments","review_comment_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues/9/comments","statuses_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/statuses/d631ccce147cd0e6f37fc1624636a403cdf1ad13","head":{"label":"DoctorVra4:Develop","ref":"Develop","sha":"d631ccce147cd0e6f37fc1624636a403cdf1ad13","user":{"login":"DoctorVra4","id":15700926,"avatar_url":"https://avatars.githubusercontent.com/u/15700926?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorVra4","html_url":"https://github.com/DoctorVra4","followers_url":"https://api.github.com/users/DoctorVra4/followers","following_url":"https://api.github.com/users/DoctorVra4/following{/other_user}","gists_url":"https://api.github.com/users/DoctorVra4/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorVra4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorVra4/subscriptions","organizations_url":"https://api.github.com/users/DoctorVra4/orgs","repos_url":"https://api.github.com/users/DoctorVra4/repos","events_url":"https://api.github.com/users/DoctorVra4/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorVra4/received_events","type":"User","site_admin":false},"repo":{"id":56136767,"name":"lesson_8_homework","full_name":"DoctorVra4/lesson_8_homework","owner":{"login":"DoctorVra4","id":15700926,"avatar_url":"https://avatars.githubusercontent.com/u/15700926?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorVra4","html_url":"https://github.com/DoctorVra4","followers_url":"https://api.github.com/users/DoctorVra4/followers","following_url":"https://api.github.com/users/DoctorVra4/following{/other_user}","gists_url":"https://api.github.com/users/DoctorVra4/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorVra4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorVra4/subscriptions","organizations_url":"https://api.github.com/users/DoctorVra4/orgs","repos_url":"https://api.github.com/users/DoctorVra4/repos","events_url":"https://api.github.com/users/DoctorVra4/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorVra4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DoctorVra4/lesson_8_homework","description":"","fork":true,"url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework","forks_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/forks","keys_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/teams","hooks_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/hooks","issue_events_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/events","assignees_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/tags","blobs_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/languages","stargazers_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/stargazers","contributors_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/contributors","subscribers_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/subscribers","subscription_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/subscription","commits_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/merges","archive_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/downloads","issues_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/releases{/id}","deployments_url":"https://api.github.com/repos/DoctorVra4/lesson_8_homework/deployments","created_at":"2016-04-13T09:00:17Z","updated_at":"2016-04-08T03:50:53Z","pushed_at":"2016-04-24T09:28:32Z","git_url":"git://github.com/DoctorVra4/lesson_8_homework.git","ssh_url":"git@github.com:DoctorVra4/lesson_8_homework.git","clone_url":"https://github.com/DoctorVra4/lesson_8_homework.git","svn_url":"https://github.com/DoctorVra4/lesson_8_homework","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"base":{"label":"2gisprojectT:master","ref":"master","sha":"8696a408570a2c00e3d17d5dcc5ab9faa903397c","user":{"login":"2gisprojectT","id":9006753,"avatar_url":"https://avatars.githubusercontent.com/u/9006753?v=3","gravatar_id":"","url":"https://api.github.com/users/2gisprojectT","html_url":"https://github.com/2gisprojectT","followers_url":"https://api.github.com/users/2gisprojectT/followers","following_url":"https://api.github.com/users/2gisprojectT/following{/other_user}","gists_url":"https://api.github.com/users/2gisprojectT/gists{/gist_id}","starred_url":"https://api.github.com/users/2gisprojectT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gisprojectT/subscriptions","organizations_url":"https://api.github.com/users/2gisprojectT/orgs","repos_url":"https://api.github.com/users/2gisprojectT/repos","events_url":"https://api.github.com/users/2gisprojectT/events{/privacy}","received_events_url":"https://api.github.com/users/2gisprojectT/received_events","type":"Organization","site_admin":false},"repo":{"id":55704751,"name":"lesson_8_homework","full_name":"2gisprojectT/lesson_8_homework","owner":{"login":"2gisprojectT","id":9006753,"avatar_url":"https://avatars.githubusercontent.com/u/9006753?v=3","gravatar_id":"","url":"https://api.github.com/users/2gisprojectT","html_url":"https://github.com/2gisprojectT","followers_url":"https://api.github.com/users/2gisprojectT/followers","following_url":"https://api.github.com/users/2gisprojectT/following{/other_user}","gists_url":"https://api.github.com/users/2gisprojectT/gists{/gist_id}","starred_url":"https://api.github.com/users/2gisprojectT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gisprojectT/subscriptions","organizations_url":"https://api.github.com/users/2gisprojectT/orgs","repos_url":"https://api.github.com/users/2gisprojectT/repos","events_url":"https://api.github.com/users/2gisprojectT/events{/privacy}","received_events_url":"https://api.github.com/users/2gisprojectT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gisprojectT/lesson_8_homework","description":"","fork":false,"url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework","forks_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/forks","keys_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/teams","hooks_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/hooks","issue_events_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/events","assignees_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/tags","blobs_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/languages","stargazers_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/stargazers","contributors_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/contributors","subscribers_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/subscribers","subscription_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/subscription","commits_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/merges","archive_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/downloads","issues_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/releases{/id}","deployments_url":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/deployments","created_at":"2016-04-07T15:12:55Z","updated_at":"2016-04-08T03:50:53Z","pushed_at":"2016-04-24T19:36:20Z","git_url":"git://github.com/2gisprojectT/lesson_8_homework.git","ssh_url":"git@github.com:2gisprojectT/lesson_8_homework.git","clone_url":"https://github.com/2gisprojectT/lesson_8_homework.git","svn_url":"https://github.com/2gisprojectT/lesson_8_homework","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9"},"html":{"href":"https://github.com/2gisprojectT/lesson_8_homework/pull/9"},"issue":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues/9"},"comments":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/2gisprojectT/lesson_8_homework/statuses/d631ccce147cd0e6f37fc1624636a403cdf1ad13"}}}}