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