ldnigro/ztltest — comment on commit 5abea1d7d849db55a247f3ce3f6948103c003bf5
File: zstl/test/org/zkoss/zktest/test2/B30/B30_1882320Test.scala line 110
By jumperchen:

You can use the API to get the selection range,
for example,
zk(jq("@textbox")).eval("getSelectionRange()")

The whole test code is like this:
() => {
waitResponse();
//Compare with selection
verifyEquals(zk(jq("@textbox")).eval("getSelectionRange()"),"[1, 3]");
}