waitFor {form.id.getAttribute("value") == "abcd"}
Note where I close the bracket.
-Roman
среда, 31 января 2018 г., 12:06:18 UTC+2 пользователь 博刘 написал:
>
> Hi there
>
> I'm new to Geb. Currently I have a webpage having a input box and a
> button. The test scenario will be inputting something, such as "a..d" in
> the input box and then click the button.
>
> Then the request will be sent and for sometime later, the text in the
> input box will change to "abcd". Consider the input box is always visible
> so it seems that waitFor does not work -
>
> waitFor always returns false for "abcd" with waitFor {form.id
> .getAttribute("value")} == "abcd". I don't want to add sleep(1000) so
> just want to know if there's anything else good for me use. Thanks!
>
> In capybara I used before, it will automatically wait for the text to be
> appeared within timeout interval.
>
>
>
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/42bb90b4-85a8-4c43-8989-6b6c7bddd7b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.