"1. GridLayout: left click on This is label 1");
}
@Test
public void dragInVerticalLayout() {
VerticalLayoutElement layout = $(VerticalLayoutElement.class).get(4);
// Drag inside the first text field
new Actions(getDriver())
.moveToElement(layout.$(TextFieldElement.class).first(), 25, 9)
.clickAndHold().moveByOffset(-20, 0).release().perform();
assertLogText("Mouse dragged in VerticalLayout",
"1. VerticalLayout: left click on This is tf5");
// Drag from a caption to its text field
new Actions(getDriver())
.moveToElement(layout.$(TextFieldElement.class).get(4), 28, 11)
.clickAndHold()
.moveToElement(layout.$(TextFieldElement.class).get(4), 39, 30)
.release().perform();
assertLogText("Expected the drag to be ignored between elements",
"1. VerticalLayout: left click on This is tf5");
}