Hi Suresh.
You can always execute JavaScript, it is described in the Book of Geb.
Can you explain what your goal is? Why do you think you want to use
.fn.extend()? What is your use case of Geb? Ist is test automation or
some other kind of web site automation? If it is testing, I think it is
generally a bad idea to manipulate the subject under test because then
you are not testing the same thing your customers use. So a little bit
of background would be good, then maybe someone can suggest something
else helping you to reach your goal. In general it is better to show
some code (HTML/CSS plus Geb) and describe your problem rather than just
what you think the solution should be.
Regards
--
Alexander Kriegisch
https://scrum-master.de
Suresh Naik schrieb am 22.02.2019 21:25:
> I am trying to see in Geb if we can attach custom method to jQuery
> navigator, to use it like:
>
> $('#element-id').myCustomMethod()
>
> Or
>
> $('#element-id').jquery.myCustomMethod()
>
> is this possible in Geb ?
>
>
> jQuery allows it by .fn.extend() :
>
>
https://api.jquery.com/jquery.fn.extend/