Often times, certain elements only appear on the page after some
Javascript has run.
At the point of time when you check manually, the element is already
available, but the automated test might be too fast.
Try this:
otherInsuranceAmount(wait: true) { $('[id$=otheramount]') }
Am 08.12.2020 16:16 schrieb Ben Frey:
I have an element on a page that's defined like this:
otherInsuranceAmount { $('[id$=otheramount]') }
When I debug my test and put a breakpoint at the "at MyPage" line, I
get a MissingPropertyException when I try to inspect
otherInsuranceAmount via the debugger. However, the expression
$('[id$=otheramount]') resolves just fine. What could cause this to
happen, and how do I fix it?
--
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/41b1a9f1-b402-485f-9f97-da5e7463cbfcn%40googlegroups.com
[1].
Links:
------
[1]
https://groups.google.com/d/msgid/geb-user/41b1a9f1-b402-485f-9f97-da5e7463cbfcn%40googlegroups.com?utm_medium=email&utm_source=footer
--
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/026849f88c939c006b43f38dceca8970%40posteo.de.