{"action":"created","comment":{"url":"https://api.github.com/repos/zanata/zanata-server/pulls/comments/31595061","id":31595061,"diff_hunk":"@@ -60,33 +55,47 @@\n public enum WebDriverFactory {\n     INSTANCE;\n \n-    private volatile WebDriver driver = createDriver();\n+    private volatile EventFiringWebDriver driver = createDriver();\n     private DriverService driverService;\n     private TestEventForScreenshotListener eventListener;\n     private int webdriverWait;\n+\n     public WebDriver getDriver() {\n         return driver;\n     }\n \n-    private WebDriver createDriver() {\n-        WebDriver driver = createPlainDriver();\n+    private EventFiringWebDriver createDriver() {\n+        String driverType = PropertiesHolder.getProperty(webDriverType.value());\n+        EventFiringWebDriver newDriver;\n+        switch (driverType.toLowerCase()) {\n+            case \"chrome\":","path":"functional-test/src/main/java/org/zanata/page/WebDriverFactory.java","position":48,"original_position":48,"commit_id":"1d64c0ae25fc2ae925c9d9ce0a068212cd435083","original_commit_id":"1d64c0ae25fc2ae925c9d9ce0a068212cd435083","user":{"login":"djansen-redhat","id":4597195,"avatar_url":"https://avatars.githubusercontent.com/u/4597195?v=3","gravatar_id":"","url":"https://api.github.com/users/djansen-redhat","html_url":"https://github.com/djansen-redhat","followers_url":"https://api.github.com/users/djansen-redhat/followers","following_url":"https://api.github.com/users/djansen-redhat/following{/other_user}","gists_url":"https://api.github.com/users/djansen-redhat/gists{/gist_id}","starred_url":"https://api.github.com/users/djansen-redhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djansen-redhat/subscriptions","organizations_url":"https://api.github.com/users/djansen-redhat/orgs","repos_url":"https://api.github.com/users/djansen-redhat/repos","events_url":"https://api.github.com/users/djansen-redhat/events{/privacy}","received_events_url":"https://api.github.com/users/djansen-redhat/received_events","type":"User","site_admin":false},"body":"Can't use non-primitive constants in a switch. (afaik)","created_at":"2015-06-03T05:39:19Z","updated_at":"2015-06-03T05:39:19Z","html_url":"https://github.com/zanata/zanata-server/pull/820#discussion_r31595061","pull_request_url":"https://api.github.com/repos/zanata/zanata-server/pulls/820","_links":{"self":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/comments/31595061"},"html":{"href":"https://github.com/zanata/zanata-server/pull/820#discussion_r31595061"},"pull_request":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/820"}}},"pull_request":{"url":"https://api.github.com/repos/zanata/zanata-server/pulls/820","id":35613915,"html_url":"https://github.com/zanata/zanata-server/pull/820","diff_url":"https://github.com/zanata/zanata-server/pull/820.diff","patch_url":"https://github.com/zanata/zanata-server/pull/820.patch","issue_url":"https://api.github.com/repos/zanata/zanata-server/issues/820","number":820,"state":"open","locked":false,"title":"Fix cannot cast FirefoxDriver to EventFiringWebDriver error","user":{"login":"djansen-redhat","id":4597195,"avatar_url":"https://avatars.githubusercontent.com/u/4597195?v=3","gravatar_id":"","url":"https://api.github.com/users/djansen-redhat","html_url":"https://github.com/djansen-redhat","followers_url":"https://api.github.com/users/djansen-redhat/followers","following_url":"https://api.github.com/users/djansen-redhat/following{/other_user}","gists_url":"https://api.github.com/users/djansen-redhat/gists{/gist_id}","starred_url":"https://api.github.com/users/djansen-redhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djansen-redhat/subscriptions","organizations_url":"https://api.github.com/users/djansen-redhat/orgs","repos_url":"https://api.github.com/users/djansen-redhat/repos","events_url":"https://api.github.com/users/djansen-redhat/events{/privacy}","received_events_url":"https://api.github.com/users/djansen-redhat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-18T08:59:59Z","updated_at":"2015-06-03T05:39:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef59603530d5169fc24816ef5d6b0fa66ac2705c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zanata/zanata-server/pulls/820/commits","review_comments_url":"https://api.github.com/repos/zanata/zanata-server/pulls/820/comments","review_comment_url":"https://api.github.com/repos/zanata/zanata-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zanata/zanata-server/issues/820/comments","statuses_url":"https://api.github.com/repos/zanata/zanata-server/statuses/1d64c0ae25fc2ae925c9d9ce0a068212cd435083","head":{"label":"zanata:fix-firefox-cast","ref":"fix-firefox-cast","sha":"1d64c0ae25fc2ae925c9d9ce0a068212cd435083","user":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"repo":{"id":1461609,"name":"zanata-server","full_name":"zanata/zanata-server","owner":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zanata/zanata-server","description":"Zanata is a web-based system for translators to translate documentation and software online using a web browser.","fork":false,"url":"https://api.github.com/repos/zanata/zanata-server","forks_url":"https://api.github.com/repos/zanata/zanata-server/forks","keys_url":"https://api.github.com/repos/zanata/zanata-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanata/zanata-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanata/zanata-server/teams","hooks_url":"https://api.github.com/repos/zanata/zanata-server/hooks","issue_events_url":"https://api.github.com/repos/zanata/zanata-server/issues/events{/number}","events_url":"https://api.github.com/repos/zanata/zanata-server/events","assignees_url":"https://api.github.com/repos/zanata/zanata-server/assignees{/user}","branches_url":"https://api.github.com/repos/zanata/zanata-server/branches{/branch}","tags_url":"https://api.github.com/repos/zanata/zanata-server/tags","blobs_url":"https://api.github.com/repos/zanata/zanata-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanata/zanata-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanata/zanata-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanata/zanata-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanata/zanata-server/statuses/{sha}","languages_url":"https://api.github.com/repos/zanata/zanata-server/languages","stargazers_url":"https://api.github.com/repos/zanata/zanata-server/stargazers","contributors_url":"https://api.github.com/repos/zanata/zanata-server/contributors","subscribers_url":"https://api.github.com/repos/zanata/zanata-server/subscribers","subscription_url":"https://api.github.com/repos/zanata/zanata-server/subscription","commits_url":"https://api.github.com/repos/zanata/zanata-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanata/zanata-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanata/zanata-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanata/zanata-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanata/zanata-server/contents/{+path}","compare_url":"https://api.github.com/repos/zanata/zanata-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanata/zanata-server/merges","archive_url":"https://api.github.com/repos/zanata/zanata-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanata/zanata-server/downloads","issues_url":"https://api.github.com/repos/zanata/zanata-server/issues{/number}","pulls_url":"https://api.github.com/repos/zanata/zanata-server/pulls{/number}","milestones_url":"https://api.github.com/repos/zanata/zanata-server/milestones{/number}","notifications_url":"https://api.github.com/repos/zanata/zanata-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanata/zanata-server/labels{/name}","releases_url":"https://api.github.com/repos/zanata/zanata-server/releases{/id}","created_at":"2011-03-10T00:24:47Z","updated_at":"2015-06-02T16:23:37Z","pushed_at":"2015-06-03T05:33:13Z","git_url":"git://github.com/zanata/zanata-server.git","ssh_url":"git@github.com:zanata/zanata-server.git","clone_url":"https://github.com/zanata/zanata-server.git","svn_url":"https://github.com/zanata/zanata-server","homepage":"http://zanata.org","size":243769,"stargazers_count":101,"watchers_count":101,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":10,"forks":25,"open_issues":10,"watchers":101,"default_branch":"master"}},"base":{"label":"zanata:integration/master","ref":"integration/master","sha":"ebf766d408fe311dedb7bc8159a3d165ff3eef4e","user":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"repo":{"id":1461609,"name":"zanata-server","full_name":"zanata/zanata-server","owner":{"login":"zanata","id":637455,"avatar_url":"https://avatars.githubusercontent.com/u/637455?v=3","gravatar_id":"","url":"https://api.github.com/users/zanata","html_url":"https://github.com/zanata","followers_url":"https://api.github.com/users/zanata/followers","following_url":"https://api.github.com/users/zanata/following{/other_user}","gists_url":"https://api.github.com/users/zanata/gists{/gist_id}","starred_url":"https://api.github.com/users/zanata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanata/subscriptions","organizations_url":"https://api.github.com/users/zanata/orgs","repos_url":"https://api.github.com/users/zanata/repos","events_url":"https://api.github.com/users/zanata/events{/privacy}","received_events_url":"https://api.github.com/users/zanata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zanata/zanata-server","description":"Zanata is a web-based system for translators to translate documentation and software online using a web browser.","fork":false,"url":"https://api.github.com/repos/zanata/zanata-server","forks_url":"https://api.github.com/repos/zanata/zanata-server/forks","keys_url":"https://api.github.com/repos/zanata/zanata-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanata/zanata-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanata/zanata-server/teams","hooks_url":"https://api.github.com/repos/zanata/zanata-server/hooks","issue_events_url":"https://api.github.com/repos/zanata/zanata-server/issues/events{/number}","events_url":"https://api.github.com/repos/zanata/zanata-server/events","assignees_url":"https://api.github.com/repos/zanata/zanata-server/assignees{/user}","branches_url":"https://api.github.com/repos/zanata/zanata-server/branches{/branch}","tags_url":"https://api.github.com/repos/zanata/zanata-server/tags","blobs_url":"https://api.github.com/repos/zanata/zanata-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanata/zanata-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanata/zanata-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanata/zanata-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanata/zanata-server/statuses/{sha}","languages_url":"https://api.github.com/repos/zanata/zanata-server/languages","stargazers_url":"https://api.github.com/repos/zanata/zanata-server/stargazers","contributors_url":"https://api.github.com/repos/zanata/zanata-server/contributors","subscribers_url":"https://api.github.com/repos/zanata/zanata-server/subscribers","subscription_url":"https://api.github.com/repos/zanata/zanata-server/subscription","commits_url":"https://api.github.com/repos/zanata/zanata-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanata/zanata-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanata/zanata-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanata/zanata-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanata/zanata-server/contents/{+path}","compare_url":"https://api.github.com/repos/zanata/zanata-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanata/zanata-server/merges","archive_url":"https://api.github.com/repos/zanata/zanata-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanata/zanata-server/downloads","issues_url":"https://api.github.com/repos/zanata/zanata-server/issues{/number}","pulls_url":"https://api.github.com/repos/zanata/zanata-server/pulls{/number}","milestones_url":"https://api.github.com/repos/zanata/zanata-server/milestones{/number}","notifications_url":"https://api.github.com/repos/zanata/zanata-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanata/zanata-server/labels{/name}","releases_url":"https://api.github.com/repos/zanata/zanata-server/releases{/id}","created_at":"2011-03-10T00:24:47Z","updated_at":"2015-06-02T16:23:37Z","pushed_at":"2015-06-03T05:33:13Z","git_url":"git://github.com/zanata/zanata-server.git","ssh_url":"git@github.com:zanata/zanata-server.git","clone_url":"https://github.com/zanata/zanata-server.git","svn_url":"https://github.com/zanata/zanata-server","homepage":"http://zanata.org","size":243769,"stargazers_count":101,"watchers_count":101,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":10,"forks":25,"open_issues":10,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/820"},"html":{"href":"https://github.com/zanata/zanata-server/pull/820"},"issue":{"href":"https://api.github.com/repos/zanata/zanata-server/issues/820"},"comments":{"href":"https://api.github.com/repos/zanata/zanata-server/issues/820/comments"},"review_comments":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/820/comments"},"review_comment":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zanata/zanata-server/pulls/820/commits"},"statuses":{"href":"https://api.github.com/repos/zanata/zanata-server/statuses/1d64c0ae25fc2ae925c9d9ce0a068212cd435083"}}}}