Originally created by Komal C.
As per documentation of geb, 4.1.2 Indexes and Ranges section, while testing code for ranges have observed that GEB is returning error.
using explicit webdriver executed below mentioned code,
browser.$("p", 0..1)*.text() == ["a", "b"]
PFA for the error.