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_L1wqv%3DGFpudq0eB%3Dz%2Bhqrnuh%2B1fdnWSuRoQgWPeHN80A%40mail.gmail.com.

Reply via email to