/*
 * (C) Copyright 2015 Boni Garcia (http://bonigarcia.github.io/)
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl-2.1.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 */
package io.github.bonigarcia.wdm.test;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.firefox.FirefoxDriver;

import io.github.bonigarcia.wdm.ChromeDriverManager;

/**
 * Test with Google Chrome browser.
 *
 * @author Boni Garcia (boni.gg@gmail.com)
 * @since 1.0.0
 */
public class ChromeTest extends ManagerTest {

	@BeforeClass
	public static void setupClass() {
		ChromeDriverManager.getInstance().setup();
	}

	@Before
	public void setupTest() {
		// driver = new ChromeDriver();
		driver = new FirefoxDriver();
	}

	@After
	public void teardown() {
		if (driver != null) {
			driver.quit();
		}
	}

	@Test
	public void testChrome() {
		browseWikipedia();
	}

}

@@ -637,16 +637,70 @@
 .test;%0A%0A
+import io.github.bonigarcia.wdm.ChromeDriverManager;%0A%0A
 import o
@@ -824,63 +824,14 @@
 ium.
-firefox.FirefoxDriver;%0A%0Aimport io.github.bonigarcia.wdm
+chrome
 .Chr
@@ -839,23 +839,16 @@
 meDriver
-Manager
 ;%0A%0A/**%0A 
@@ -1135,11 +1135,8 @@
 %7B%0A%09%09
-// 
 driv
@@ -1164,40 +1164,8 @@
 ();%0A
-%09%09driver = new FirefoxDriver();%0A
 %09%7D%0A%0A

Correct webdriver class in ChromeTest