blob: 481812581d5ec9e3b27d47f13a2457da7124dea9 (
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
|
package com.vaadin.tests.components.combobox;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import org.junit.Test;
import com.vaadin.testbench.elements.ComboBoxElement;
import com.vaadin.testbench.elements.LabelElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
@SuppressWarnings("serial")
public class ComboSelectedValueBeyondTheFirstDropdownPageTest
extends MultiBrowserTest {
@Test
public void valueOnSecondPageIsSelected() {
openTestURL();
ComboBoxElement comboBoxWebElement = $(ComboBoxElement.class).first();
comboBoxWebElement.openNextPage();
comboBoxWebElement.selectByText("Item 19");
assertThat($(LabelElement.class).id("value").getText(), is("Item 19"));
}
}
|