package com.vaadin.tests.components.flash;

import java.util.List;

import org.junit.Test;
import org.openqa.selenium.remote.DesiredCapabilities;

import com.vaadin.tests.tb3.MultiBrowserTest;

public class FlashIsVisibleTest extends MultiBrowserTest {

    @Override
    public List<DesiredCapabilities> getBrowsersToTest() {
        // FF and PhantomJS fail at Flash and ShiftClick
        List<DesiredCapabilities> capabilities = getBrowsersSupportingShiftClick();
        // Flash support in Chrome is disabled
        capabilities.removeAll(getBrowserCapabilities(Browser.CHROME));
        return capabilities;
    }

    @Test
    public void testFlashIsCorrectlyDisplayed() throws Exception {
        openTestURL();
        /* Allow the flash plugin to load before taking the screenshot */
        sleep(5000);
        compareScreen("blue-circle");
    }
}

@@ -140,16 +140,62 @@
 ities;%0A%0A
+import com.vaadin.testbench.parallel.Browser;%0A
 import c

Add missing import in FlashIsVisibleTest