Geb example

Ruby code posted
created at 10 Dec 11:29, updated at 25 Dec 03:05

Edit | Back
1
2
3
4
assert $("p", 0).text() == "a"
assert $("p", 2).text() == "c"
assert $("p", 0..1)*.text() == ["a", "b"]
assert $("p", 1..2)*.text() == ["b", "c"]
148 Bytes in 2 ms with coderay