aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/combobox/ComboBoxBorderTest.java
blob: 2f7af7d65c313edaa177ac91c3c65bdb5a183d5b (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
package com.vaadin.tests.components.combobox;

import java.io.IOException;

import org.junit.Test;
import org.openqa.selenium.Keys;
import org.openqa.selenium.interactions.Actions;

import com.vaadin.testbench.elements.ComboBoxElement;
import com.vaadin.testbench.elements.LabelElement;
import com.vaadin.tests.tb3.MultiBrowserTest;

public class ComboBoxBorderTest extends MultiBrowserTest {
    @Test
    public void testComboBoxArrow() throws IOException {
        openTestURL();
        ComboBoxElement cb = $(ComboBoxElement.class).first();
        cb.openPopup();
        cb.sendKeys(Keys.DOWN, Keys.ENTER);
        Actions actions = new Actions(getDriver());
        actions.moveToElement($(LabelElement.class).first()).perform();
        compareScreen("arrow");
    }
}