blob: 927b76d2c3a3caa4d91bb4f11b1374885311a5ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.vaadin.tests.components.browserframe;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class BrowserFrameIsVisibleTest extends MultiBrowserTest {
@Test
public void testBrowserFrameDisplaysFiles() throws Exception {
openTestURL();
compareScreen("show_initial");
$(ButtonElement.class).caption("Hello World").first().click();
compareScreen("show_hello");
$(ButtonElement.class).caption("Lorem ipsum").first().click();
compareScreen("show_lorem");
$(ButtonElement.class).caption("null").first().click();
compareScreen("show_alternative_text");
$(ButtonElement.class).caption("Lorem ipsum").first().click();
compareScreen("show_lorem");
}
}
|