Package com.vaadin.testbench.elements

Examples of com.vaadin.testbench.elements.LabelElement


        }

        $(ButtonElement.class).caption(link).first().click();
        CssLayoutElement content = wrap(CssLayoutElement.class,
                findElement(By.className("valo-content")));
        LabelElement captionElem = content.$(LabelElement.class).first();
        if (!captionElem.getText().equals(caption)) {
            // IE ... why you fail clicks
            System.err.println("Extra click needed on '" + link
                    + "' on remote " + getDesiredCapabilities() + " "
                    + getRemoteControlName());
View Full Code Here


*/
public class DragAndDropWrapperTooltipsTest extends TooltipTest {
    @Test
    public void testDragAndDropTooltips() throws Exception {
        openTestURL();
        LabelElement element = $(LabelElement.class).get(4);
        LabelElement targetElement = $(LabelElement.class).get(1);
        checkTooltip(element,
                "Tooltip for the wrapper wrapping all the draggable layouts");
        new Actions(getDriver()).clickAndHold(element)
                .moveToElement(targetElement).perform();
        sleep(500);
View Full Code Here

public class CustomDeploymentConfTest extends MultiBrowserTest {
    @Test
    public void testCustomDeploymentConf() {
        openTestURL();

        LabelElement cacheTimeLabel = $$(VerticalLayoutElement.class)
                .$$(VerticalLayoutElement.class).$$(LabelElement.class).first();

        LabelElement customParamLabel = $$(VerticalLayoutElement.class)
                .$$(VerticalLayoutElement.class).$$(LabelElement.class).get(1);

        Assert.assertEquals("Resource cache time: 3599",
                cacheTimeLabel.getText());
        Assert.assertEquals("Custom config param: customValue",
                customParamLabel.getText());
    }
View Full Code Here

        openTestURL();

        List<LabelElement> labels = $(LabelElement.class).all();
        assertTrue("unexpected amount of labels", labels.size() > 2);

        LabelElement label = labels.get(labels.size() - 1);
        String message = "Tests whether the testing server is run with assertions enabled.";
        assertEquals("unexpected text found", message, label.getText());
    }
View Full Code Here

    @Test
    public void testExtended() {
        // Test that UIProvider parameter is more important than UI parameter
        driver.get(getTestUrl().replace("uiprovider", "uiprovider/test"));

        LabelElement label = $(LabelElement.class).first();
        String message = "Test for basic JavaScript component functionality.";
        assertEquals("unexpected text found", message, label.getText());
    }
View Full Code Here

        ButtonElement button = $(ButtonElement.class).get(1);
        button.click();
    }

    private String getFirstLabelValue() {
        LabelElement label = $(LabelElement.class).get(1);
        return label.getText();
    }
View Full Code Here

        LabelElement label = $(LabelElement.class).get(1);
        return label.getText();
    }

    private String getSecondLabelValue() {
        LabelElement label = $(LabelElement.class).get(2);
        return label.getText();
    }
View Full Code Here

        js.executeScript("arguments[0].scrollTop = " + 30, actualElement);
    }

    private String getCurrentPageFirstItemIndex() throws InterruptedException {
        ButtonElement updateLabelButton = $(ButtonElement.class).get(4);
        LabelElement label = $(LabelElement.class).get(1);
        updateLabelButton.click();
        sleep(200);
        return label.getText();
    }
View Full Code Here

        openTestURL();

        openDatePicker();
        select2ndOfSeptember();

        LabelElement dateValue = $(LabelElement.class).id("dateValue");
        assertThat(dateValue.getText(), is("09/02/2014 00:00:00"));
    }
View Full Code Here

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

        LabelElement bigCell = $(LabelElement.class).id("bigCell");
        LabelElement smallCell = $(LabelElement.class).id("smallCell");

        // Width is 1000px. Big cell should take up 2/3, small cell should take
        // up 1/3.
        assertEquals(667, bigCell.getSize().width);
        assertEquals(333, smallCell.getSize().width);

    }
View Full Code Here

TOP

Related Classes of com.vaadin.testbench.elements.LabelElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.