Can you post us the code or a screenshot of the DOM with the element in
question?

On Wed, Aug 19, 2020, 3:29 PM Ben Frey <[email protected]> wrote:

> I'm starting a new project that logs in to my company's web site. I had an
> old project that I had working, but our pages have changed somewhat since
> then. I can use the browser console to select the element in question via
> $$(".some-long-css-class")
> (the element has a few other classes as well, but the browser still
> correctly finds the single element with that class). However, Geb does not
> find this class in my at method:
>
> static at = { $('.some-long-css-class').text() == 'Welcome' }
>
> this selector returns an empty array, so text() returns null. What could
> be going wrong here?
>
> --
> 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/c710b10a-7b24-4d0a-9d69-ecc23a0d2dffn%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/c710b10a-7b24-4d0a-9d69-ecc23a0d2dffn%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/CAO2BPEFJ6YDRfP3M%3DZC-n5LkbdaKU%2BPffLnH_Gd1_c_1wc-p1g%40mail.gmail.com.

Reply via email to