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.

FileDownloaderUITest.java 590B

123456789101112131415161718192021
  1. package com.vaadin.tests.components;
  2. import org.junit.Test;
  3. import org.openqa.selenium.By;
  4. import com.vaadin.testbench.elements.ButtonElement;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. public class FileDownloaderUITest extends MultiBrowserTest {
  7. @Test
  8. public void ensureButtonWithDownloaderCanBeRemoved() {
  9. openTestURL();
  10. By id = By.id("com.vaadin.ui.ButtonDynamicimage");
  11. assertElementPresent(id);
  12. $(ButtonElement.class).caption("Remove first download button").first()
  13. .click();
  14. assertElementNotPresent(id);
  15. }
  16. }