"1. AbsoluteLayout: left click on This is its caption");
}
@Test
public void dragInCSSLayout() {
CssLayoutElement layout = $(CssLayoutElement.class).first();
// Drag inside the first text field's caption
new Actions(getDriver())
.moveToElement(layout.$(TextFieldElement.class).first(), 51, 7)
.clickAndHold().moveByOffset(-20, 0).release().perform();
assertLogText("Mouse dragged in CSSLayout",
"1. CSSLayout: left click on This is its caption");
// Drag from the first text field to the second text field
new Actions(getDriver())
.moveToElement(layout.$(TextFieldElement.class).first(), 51, 27)
.clickAndHold()
.moveToElement(layout.$(TextFieldElement.class).get(1), 51, 27)
.release().perform();
assertLogText("Expected the drag to be ignored between elements",
"1. CSSLayout: left click on This is its caption");
}