this goes in your GebConfig

baseNavigatorWaiting = true
https://gebish.org/manual/current/#waiting-for-base-navigator
https://gebish.org/manual/current/#content-dsl-wait

atCheckWaiting = true
https://gebish.org/manual/current/#at-check-waiting

cacheDriverPerThread = true
https://gebish.org/manual/current/#driver-caching-configuration

autoClearCookies = false
https://gebish.org/manual/current/#auto-clearing-cookies-configuration






On Thursday, October 10, 2019 at 12:16:29 PM UTC-4, Ben Frey wrote:
>
> I don't have *atCheckWaiting *set at all, so it's whatever the default is 
> (can't find what it is in the documentation). The only thing in the at 
> block is a title check, and I see the title long before Geb decides to 
> continue navigation. The *pageLoadStrategy* sounds promising, but is 
> there a way to set it only for a given page?
>
> On Thursday, October 10, 2019 at 11:07:43 AM UTC-5, jc wrote:
>>
>> This could be a couple things. Do you have *atCheckWaiting *set to true 
>> in GebConfig?  If so, it will wait for everything in your pages *static 
>> at {}* block.  The other thing could be the driver's page load 
>> strategy.  I know Chrome and Firefox drivers you can set different levels 
>> of page load strategy with capabilities.  For example, my firefox driver 
>> uses 
>> capabilities.setCapability("pageLoadStrategy","eager")
>>  
>>
>> *pageLoadStrategy* supports the following values :
>>
>>    1. 
>>    
>>    *normal*
>>    
>>    This stategy causes Selenium to wait for the full page loading (html 
>>    content and subresources downloaded and parsed).
>>    2. 
>>    
>>    *eager*
>>    
>>    This stategy causes Selenium to wait for the DOMContentLoaded event 
>>    (html content downloaded and parsed only).
>>    3. 
>>    
>>    *none*
>>    
>>    This strategy causes Selenium to return immediately after the initial 
>>    page content is fully received 
>>    
>> Be careful when you change this though as you can introduce a lot of 
>> timing errors.
>>
>> On Thursday, October 10, 2019 at 10:49:06 AM UTC-5, Ben Frey wrote:
>>>
>>> I have a logon script that goes to the login page, enters the user's 
>>> credentials, then once we hit the member home page, I want to navigate to a 
>>> specific URL. This works fine, but Geb is waiting for *all *of the 
>>> content on the home page to load before it navigates away, which is 
>>> unnecessary. Is there a way to tell Geb "once you're at HomePage, 
>>> immediately navigate to TargetPage"?
>>>
>>

-- 
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/695550d5-341d-4532-918f-aa2e51d20d05%40googlegroups.com.

Reply via email to