blob: f846643886a2ea2c7858045bf88ea799d2a35ae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package com.vaadin.tests.components.window;
import java.io.IOException;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class MoveToTopTest extends MultiBrowserTest {
@Test
public void testBringToFrontViaHeader() throws IOException {
openTestURL();
WebElement firstWindow = driver
.findElement(By.className("first-window"));
WebElement secondWindow = driver
.findElement(By.className("second-window"));
secondWindow.click();
compareScreen("second-window-over-first");
WebElement headerFirst = firstWindow
.findElement(By.className("v-window-outerheader"));
headerFirst.click();
compareScreen("first-window-over-second");
}
}
|