{"action":"created","comment":{"url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/comments/49155430","id":49155430,"diff_hunk":"@@ -1,27 +1,39 @@\n ﻿using System;\n using System.Threading;\n using OpenQA.Selenium;\n-using OpenQA.Selenium.Firefox;\n using OpenQA.Selenium.Chrome;\n+using OpenQA.Selenium.IE;\n+using System.Collections.Generic;\n+using System.Net;\n+using OpenQA.Selenium.Remote;\n+using OpenQA.Selenium.Support.UI;\n \n namespace TestFramework\n {\n     public static class Browser\n     {\n-        static IWebDriver webDriver = new ChromeDriver(@\"c:\\libraries\");\n+        //static IWebDriver webDriver = new InternetExplorerDriver();\n+        static IWebDriver webDriver = new ChromeDriver();\n+        static string defaultTitle;\n+        static string defaultHandle = webDriver.CurrentWindowHandle;\n         public static string BaseAddress\n         {\n+            //get { return \"http://officedevcenter-msprod-standby.azurewebsites.net\"; }\n             get { return \"http://officedevcentersite-orchard.azurewebsites.net\"; }\n+            //get { return \"http://localhost\"; }\n         }\n \n         public static void Initialize()\n         {\n+            SetWaitTime(TimeSpan.FromSeconds(30));","path":"TestFramework/Browser.cs","position":31,"original_position":30,"commit_id":"51c2c0429c581ee99026fc675e30314bf4517a4d","original_commit_id":"72036e240898d0769ae860892411ea72643d60f9","user":{"login":"KarinLee","id":15025971,"avatar_url":"https://avatars.githubusercontent.com/u/15025971?v=3","gravatar_id":"","url":"https://api.github.com/users/KarinLee","html_url":"https://github.com/KarinLee","followers_url":"https://api.github.com/users/KarinLee/followers","following_url":"https://api.github.com/users/KarinLee/following{/other_user}","gists_url":"https://api.github.com/users/KarinLee/gists{/gist_id}","starred_url":"https://api.github.com/users/KarinLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarinLee/subscriptions","organizations_url":"https://api.github.com/users/KarinLee/orgs","repos_url":"https://api.github.com/users/KarinLee/repos","events_url":"https://api.github.com/users/KarinLee/events{/privacy}","received_events_url":"https://api.github.com/users/KarinLee/received_events","type":"User","site_admin":false},"body":"When running all cases, sometimes some pages will time out, for example, the code sample page and training page. And this may have several reasons, maybe Chun opened the parallel run at the same time, or other network congestion. I think we can currently use a normal value like 10 or 15, and record which page time out frequently. Then we can use explicit wait for them.","created_at":"2016-01-08T03:26:17Z","updated_at":"2016-01-08T03:26:17Z","html_url":"https://github.com/JingyuShao/DevOfficeComTest/pull/1#discussion_r49155430","pull_request_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/comments/49155430"},"html":{"href":"https://github.com/JingyuShao/DevOfficeComTest/pull/1#discussion_r49155430"},"pull_request":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1","id":55292493,"html_url":"https://github.com/JingyuShao/DevOfficeComTest/pull/1","diff_url":"https://github.com/JingyuShao/DevOfficeComTest/pull/1.diff","patch_url":"https://github.com/JingyuShao/DevOfficeComTest/pull/1.patch","issue_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues/1","number":1,"state":"open","locked":false,"title":"Test","user":{"login":"KarinLee","id":15025971,"avatar_url":"https://avatars.githubusercontent.com/u/15025971?v=3","gravatar_id":"","url":"https://api.github.com/users/KarinLee","html_url":"https://github.com/KarinLee","followers_url":"https://api.github.com/users/KarinLee/followers","following_url":"https://api.github.com/users/KarinLee/following{/other_user}","gists_url":"https://api.github.com/users/KarinLee/gists{/gist_id}","starred_url":"https://api.github.com/users/KarinLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarinLee/subscriptions","organizations_url":"https://api.github.com/users/KarinLee/orgs","repos_url":"https://api.github.com/users/KarinLee/repos","events_url":"https://api.github.com/users/KarinLee/events{/privacy}","received_events_url":"https://api.github.com/users/KarinLee/received_events","type":"User","site_admin":false},"body":"pull for review.","created_at":"2016-01-07T02:23:10Z","updated_at":"2016-01-08T03:26:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5738f12e3a3a765a907cbfcbf26d0bf3b32f57bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1/commits","review_comments_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1/comments","review_comment_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues/1/comments","statuses_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/statuses/51c2c0429c581ee99026fc675e30314bf4517a4d","head":{"label":"KarinLee:test","ref":"test","sha":"51c2c0429c581ee99026fc675e30314bf4517a4d","user":{"login":"KarinLee","id":15025971,"avatar_url":"https://avatars.githubusercontent.com/u/15025971?v=3","gravatar_id":"","url":"https://api.github.com/users/KarinLee","html_url":"https://github.com/KarinLee","followers_url":"https://api.github.com/users/KarinLee/followers","following_url":"https://api.github.com/users/KarinLee/following{/other_user}","gists_url":"https://api.github.com/users/KarinLee/gists{/gist_id}","starred_url":"https://api.github.com/users/KarinLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarinLee/subscriptions","organizations_url":"https://api.github.com/users/KarinLee/orgs","repos_url":"https://api.github.com/users/KarinLee/repos","events_url":"https://api.github.com/users/KarinLee/events{/privacy}","received_events_url":"https://api.github.com/users/KarinLee/received_events","type":"User","site_admin":false},"repo":{"id":48161698,"name":"DevOfficeComTest","full_name":"KarinLee/DevOfficeComTest","owner":{"login":"KarinLee","id":15025971,"avatar_url":"https://avatars.githubusercontent.com/u/15025971?v=3","gravatar_id":"","url":"https://api.github.com/users/KarinLee","html_url":"https://github.com/KarinLee","followers_url":"https://api.github.com/users/KarinLee/followers","following_url":"https://api.github.com/users/KarinLee/following{/other_user}","gists_url":"https://api.github.com/users/KarinLee/gists{/gist_id}","starred_url":"https://api.github.com/users/KarinLee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarinLee/subscriptions","organizations_url":"https://api.github.com/users/KarinLee/orgs","repos_url":"https://api.github.com/users/KarinLee/repos","events_url":"https://api.github.com/users/KarinLee/events{/privacy}","received_events_url":"https://api.github.com/users/KarinLee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KarinLee/DevOfficeComTest","description":"","fork":true,"url":"https://api.github.com/repos/KarinLee/DevOfficeComTest","forks_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/forks","keys_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/teams","hooks_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/hooks","issue_events_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/issues/events{/number}","events_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/events","assignees_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/assignees{/user}","branches_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/branches{/branch}","tags_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/tags","blobs_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/git/refs{/sha}","trees_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/statuses/{sha}","languages_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/languages","stargazers_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/stargazers","contributors_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/contributors","subscribers_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/subscribers","subscription_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/subscription","commits_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/commits{/sha}","git_commits_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/git/commits{/sha}","comments_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/comments{/number}","issue_comment_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/issues/comments{/number}","contents_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/contents/{+path}","compare_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/merges","archive_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/downloads","issues_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/issues{/number}","pulls_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/pulls{/number}","milestones_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/milestones{/number}","notifications_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/labels{/name}","releases_url":"https://api.github.com/repos/KarinLee/DevOfficeComTest/releases{/id}","created_at":"2015-12-17T08:21:28Z","updated_at":"2016-01-07T15:00:23Z","pushed_at":"2016-01-08T03:07:17Z","git_url":"git://github.com/KarinLee/DevOfficeComTest.git","ssh_url":"git@github.com:KarinLee/DevOfficeComTest.git","clone_url":"https://github.com/KarinLee/DevOfficeComTest.git","svn_url":"https://github.com/KarinLee/DevOfficeComTest","homepage":null,"size":109,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"JingyuShao:test","ref":"test","sha":"2a97e2908e99184c01a40bd5d1a29ff473783036","user":{"login":"JingyuShao","id":13442590,"avatar_url":"https://avatars.githubusercontent.com/u/13442590?v=3","gravatar_id":"","url":"https://api.github.com/users/JingyuShao","html_url":"https://github.com/JingyuShao","followers_url":"https://api.github.com/users/JingyuShao/followers","following_url":"https://api.github.com/users/JingyuShao/following{/other_user}","gists_url":"https://api.github.com/users/JingyuShao/gists{/gist_id}","starred_url":"https://api.github.com/users/JingyuShao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JingyuShao/subscriptions","organizations_url":"https://api.github.com/users/JingyuShao/orgs","repos_url":"https://api.github.com/users/JingyuShao/repos","events_url":"https://api.github.com/users/JingyuShao/events{/privacy}","received_events_url":"https://api.github.com/users/JingyuShao/received_events","type":"User","site_admin":false},"repo":{"id":47441663,"name":"DevOfficeComTest","full_name":"JingyuShao/DevOfficeComTest","owner":{"login":"JingyuShao","id":13442590,"avatar_url":"https://avatars.githubusercontent.com/u/13442590?v=3","gravatar_id":"","url":"https://api.github.com/users/JingyuShao","html_url":"https://github.com/JingyuShao","followers_url":"https://api.github.com/users/JingyuShao/followers","following_url":"https://api.github.com/users/JingyuShao/following{/other_user}","gists_url":"https://api.github.com/users/JingyuShao/gists{/gist_id}","starred_url":"https://api.github.com/users/JingyuShao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JingyuShao/subscriptions","organizations_url":"https://api.github.com/users/JingyuShao/orgs","repos_url":"https://api.github.com/users/JingyuShao/repos","events_url":"https://api.github.com/users/JingyuShao/events{/privacy}","received_events_url":"https://api.github.com/users/JingyuShao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JingyuShao/DevOfficeComTest","description":"","fork":false,"url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest","forks_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/forks","keys_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/teams","hooks_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/hooks","issue_events_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues/events{/number}","events_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/events","assignees_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/assignees{/user}","branches_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/branches{/branch}","tags_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/tags","blobs_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/git/refs{/sha}","trees_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/statuses/{sha}","languages_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/languages","stargazers_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/stargazers","contributors_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/contributors","subscribers_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/subscribers","subscription_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/subscription","commits_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/commits{/sha}","git_commits_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/git/commits{/sha}","comments_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/comments{/number}","issue_comment_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues/comments{/number}","contents_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/contents/{+path}","compare_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/merges","archive_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/downloads","issues_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues{/number}","pulls_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls{/number}","milestones_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/milestones{/number}","notifications_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/labels{/name}","releases_url":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/releases{/id}","created_at":"2015-12-05T04:05:16Z","updated_at":"2015-12-10T21:09:28Z","pushed_at":"2016-01-08T03:07:17Z","git_url":"git://github.com/JingyuShao/DevOfficeComTest.git","ssh_url":"git@github.com:JingyuShao/DevOfficeComTest.git","clone_url":"https://github.com/JingyuShao/DevOfficeComTest.git","svn_url":"https://github.com/JingyuShao/DevOfficeComTest","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1"},"html":{"href":"https://github.com/JingyuShao/DevOfficeComTest/pull/1"},"issue":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues/1"},"comments":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/JingyuShao/DevOfficeComTest/statuses/51c2c0429c581ee99026fc675e30314bf4517a4d"}}}}