Never triedbit, but does this work?
If ( $("#selector", text: "something", wait: 5, required: false).visible ) {
Foo
} Else {
Bar
}
Something like that? Sorry on the road and on mobile.
I don't see why you would want to use waitFor because that throws an exception
if it doesn't return true.
You could also write two tests, one for each type of behaviour.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/2b0bd21b-910c-487c-99c8-a3e063df3f6e%40googlegroups.com.