How to use "Select" form control module

29 views
Skip to first unread message

Rahman Mahbub

unread,
Nov 1, 2017, 4:53:18 AM11/1/17
to Geb User Mailing List
Today I was trying to use Select form control module like as documented in here

def departureFrom = $(name:"dep").module(Select)
departureFrom.selected = "NRT"

which is not working. Modifed code like below and it works fine:

def departureFrom = $(name:"dep").module(Select)
departureFrom.setSelected("NRT")

Should it be raised as an issue?

Rahman Mahbub

unread,
Nov 1, 2017, 4:57:22 AM11/1/17
to Geb User Mailing List
JFYI, 
departureFrom.selected = "NRT" <-- gives error in Eclipse:  Groovy:Expected a condition, but found an assignment. Did you intend to write '==' ? @ line 126, column 4.

Marcin Erdmann

unread,
Nov 1, 2017, 5:42:58 PM11/1/17
to geb-...@googlegroups.com
Did you by any chance place that statement in an asserting Spock block? By asserting I mean `then` or `expect`.

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/0a6eba42-df87-465d-8b80-63d29598417b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages