vaadin / testbench

Vaadin TestBench is a tool for automated user interface testing of Vaadin applications.
https://vaadin.com/testbench
Other
20 stars 22 forks source link

Click fails with EdgeDriver #903

Open johannesh2 opened 7 years ago

johannesh2 commented 7 years ago

Fail

I have a simple test case using EdgeDriver and clicking fails with error message org.openqa.selenium.WebDriverException: Element is obscured (WARNING: The server did not provide any stacktrace information)

Versions

Vaadin 8.0.5 TestBench 5.0.0 MicrosoftWebDriver 4.15063

Test UI

        VerticalLayout layout =
                new VerticalLayout();
        layout.setSizeFull();
        Button button = new Button("Click Me!",
                event -> Notification
                        .show("Clicked"));
        layout.addComponent(button);
        layout.setComponentAlignment(button,
                Alignment.MIDDLE_CENTER);
        setContent(layout);

Test class

public class MyTest extends TestBenchTestCase {

    @Test
    public void testMyTest() {
        setDriver(new EdgeDriver());
        getDriver().get("http://localhost:8080");
        $(ButtonElement.class).first().click();
        assertEquals("Clicked",
                $(NotificationElement.class).first()
                        .getCaption());
        getDriver().quit();
    }
}
johannesh2 commented 7 years ago

Might or might not be related https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5238133/

petrixh commented 7 years ago

Probably the same issue as https://github.com/vaadin/testbench/issues/914, however 914 is for TestBench 4.2.0 and implies that it impacts vaadin element api-internal calls as well.