testbench
testbench copied to clipboard
Click fails with EdgeDriver
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();
}
}
Might or might not be related https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5238133/
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.