You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FlashIsVisibleTest.java 910B

1234567891011121314151617181920212223242526272829
  1. package com.vaadin.tests.components.flash;
  2. import java.util.List;
  3. import org.junit.Test;
  4. import org.openqa.selenium.remote.DesiredCapabilities;
  5. import com.vaadin.testbench.parallel.Browser;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. public class FlashIsVisibleTest extends MultiBrowserTest {
  8. @Override
  9. public List<DesiredCapabilities> getBrowsersToTest() {
  10. // FF and PhantomJS fail at Flash and ShiftClick
  11. List<DesiredCapabilities> capabilities = getBrowsersSupportingShiftClick();
  12. // Flash support in Chrome is disabled
  13. capabilities.removeAll(getBrowserCapabilities(Browser.CHROME));
  14. return capabilities;
  15. }
  16. @Test
  17. public void testFlashIsCorrectlyDisplayed() throws Exception {
  18. openTestURL();
  19. /* Allow the flash plugin to load before taking the screenshot */
  20. sleep(5000);
  21. compareScreen("blue-circle");
  22. }
  23. }