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/ -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/20190225011658.BDE0644C1C55%40dd39516.kasserver.com. For more options, visit https://groups.google.com/d/optout.
