Brian, from what you wrote until now I don't think that this is a defect with Geb, so let's continue trying to figure out what is going on in this thread for now.
You're talking about the value of date being reported as null after introducing a waitFor() call but the output you included looks exactly the same to me as in the initial email from you. Did you make a mistake and include the old report instead of the new one? Can you also please show how you used the waitFor() method? On Fri, Aug 12, 2016 at 8:11 PM, Brian Westrich <[email protected]> wrote: > On Wed, Aug 10, 2016 at 3:09 PM, Marcin Erdmann <[email protected]> > wrote: > > > > Are you using some js framework intended for building single > > page apps like Angular, Ember or React? If that is the case then you will > > have to add an waitFor() call which will enable you to wait for the page > > state to stabilise before moving on with performing your assertion. > > > > Thanks for the suggestion Marcin. We ARE using Angular. I added a waitFor, > and this changed the error message slightly, but it still doesn't behave as > I'd hoped (it merely reports that the actual date is null, vs. showing the > value of the actual date. Here's the output below: > > Condition not satisfied: > > labRequest[0].dateField == requestDate > | | | | | > | | | | 2016-03-02T00:00 > | | | false > | | geb.content.SimplePageContent@6add684e (renderer threw > StaleElementReferenceException) > | ......LabAnalysisRequestRow@274eff2c (renderer threw > StaleElementReferenceException) > java.util.ArrayList@1e76c657 (renderer threw GroovyRuntimeException) > > Do you have any other suggestions? Should I report this on the geb > developer's mailing list and/or enter it as a defect? > > -- > 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/CAMvxi91C0Q-8JLOfqTfvsvibaKOF9gekyVy-% > 3Dy7wDZPPCg63yA%40mail.gmail.com > <https://groups.google.com/d/msgid/geb-user/CAMvxi91C0Q-8JLOfqTfvsvibaKOF9gekyVy-%3Dy7wDZPPCg63yA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2B52dQTjsX%3DKiaik_eP0ZpZ17vNrVYE2F6XcptqbWt71dTr-%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
