package com.vaadin.tests.components.flash; import java.util.List; import org.junit.Test; import org.openqa.selenium.remote.DesiredCapabilities; import com.vaadin.testbench.parallel.Browser; 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"); } }