Forgot to add, you can setup interval in Geb.config

waiting {
    timeout = 60
    retryInterval = 1
}



Best regards,
SDA



On Thu, Jun 11, 2020 at 11:43 PM Gordon Freeman <[email protected]>
wrote:

> It doesn`t work in such way (ok, I was not able to setup it). Works
> perfectly
>
> waitFor { something.displayed }
>
> or
>
> waitFor { title == 'something' }
>
> Best regards,
> SDA
>
>
>
> On Thu, Jun 11, 2020 at 5:50 PM Avinash Kumar <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am trying to use waitFor method in different class other than page
>> class.
>>
>> For example:
>>
>> class test extends page {
>>
>>
>> def clickAnElement(ObjName)
>> {
>>
>> waitFor(60)
>>  {
>>  ObjName.click()
>> }
>> }
>> }
>>
>>
>> and clickAnElement, i am calling from one page class .
>> but code fails at WaitFor() as WaitFor is not working for me in class
>> other than page class.
>>
>>
>> Can any help me out in this case. Please
>>
>> Thanks
>> Regards,
>> Avinash Kumar
>>
>> --
>> 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/CAMMvVTQGSi1pUnfqADqRGAmTWZjKNZZV11oEY7zOdS1dcFsmMA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/geb-user/CAMMvVTQGSi1pUnfqADqRGAmTWZjKNZZV11oEY7zOdS1dcFsmMA%40mail.gmail.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/CAKQxB_JYuc8r-Tevvh4j0iQiMNaWcwMmnYK4gh7KiY%2BW1GKhKg%40mail.gmail.com.

Reply via email to