That fixed it, thanks!

On Wednesday, August 19, 2020 at 3:36:24 PM UTC-5 [email protected] wrote:

> Hello Ben, 
> possibly the element becomes available only after the page has completely 
> finished loading.
> You could try enabling "at-check waiting" or do something like
>
>     waitFor {
>         $('.some-long-css-class').text() == 'Welcome'   
>     }
>
> in your at-checker.
>
> Does that work?
>
> Thomas
> Ben Frey schrieb am Mittwoch, 19. August 2020 um 22:29:00 UTC+2:
>
>> 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/545a54b8-77cc-4afe-b50b-b990b33fc833n%40googlegroups.com.

Reply via email to