if (makeSubmit) {
element("formID:submit").clickAndWait();
}
String tlsId = "formID:styled";
TwoListSelectionInspector tls = twoListSelection(tlsId);
ElementInspector leftList = tls.leftList();
ElementInspector rightList = tls.rightList();
ElementInspector leftHeader = tls.leftListHeader();
ElementInspector rightHeader = tls.rightListHeader();
InputInspector addBtn = tls.addButton();
InputInspector addAllBtn = tls.addAllButton();
InputInspector removeBtn = tls.removeButton();
InputInspector removeAllBtn = tls.removeAllButton();
InputInspector moveUpBtn = tls.moveUpButton();
InputInspector moveDownBtn = tls.moveDownButton();
String allButtonsStyle = "color: red; background-color: yellow; border: 2px solid green;";
addAllBtn.assertStyle(allButtonsStyle);
addBtn.assertStyle(allButtonsStyle);
removeBtn.assertStyle(allButtonsStyle);
removeAllBtn.assertStyle(allButtonsStyle);
moveUpBtn.assertStyle(allButtonsStyle);
moveDownBtn.assertStyle(allButtonsStyle);
//headerStyle="color: pink; border: 2px dashed blue; background: beige;"
leftHeader.assertText("Available items");
rightHeader.assertText("Selected items");
leftHeader.assertStyle("background-color: beige; color: pink; border: 2px dashed blue;");
rightHeader.assertStyle("background-color: beige; color: pink; border: 2px dashed blue;");
leftList.assertStyle("background-color: azure;");
rightList.assertStyle("background-color: azure;");
List<ElementInspector> options = leftList.childNodesByName("option");
for (int i = 0; i < 6; i++) {
ElementInspector option = options.get(i);
option.assertText("itemL_" + (i + 1));
option.assertStyle("font-weight: bold");
}
//style="width: 500px; border: 3px dotted brown;"
tls.assertWidth(500);
addAllBtn.assertExpressionEquals("title", "add all hint");
addAllBtn.assertValue("add all");
addBtn.assertExpressionEquals("title", "add hint");