aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/slider/HiddenSliderHandleTest.java
blob: 631e9e1550140300966c1753f87fa373152c2151 (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
package com.vaadin.tests.components.slider;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

import java.io.IOException;

import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

import com.vaadin.tests.tb3.MultiBrowserTest;

public class HiddenSliderHandleTest extends MultiBrowserTest {

    @Test
    public void handleIsAccessible() throws IOException {
        openTestURL();

        assertThat(getSliderHandle().isDisplayed(), is(true));
    }

    private WebElement getSliderHandle() {
        return driver.findElement(By.className("v-slider-handle"));
    }
}