Hi tu Mimi and Marcin Erdmann, Thanks for your reply ! Using jQuery, I can simulate a user clicks, mouseover actions, sending keystrokes, etc. but I'm still not clear about setting different input values for date. As an example, how to simulate the specific date say 10/09/2017 - 11/10/2018 ? Can you please point me some working example ?
Thanks in advance ! On Thursday, December 8, 2016 at 9:31:44 PM UTC, Marcin Erdmann wrote: > > There are basically two options: > - you can interact with the field in the exact same way as a user would, > that is by clicking and then interacting with the calendar > - if your application under test includes jQuery then, as suggested by Tu, > you can work around the fact that the field is not editable by using jQuery > to manipulate its value; I would suggest using Geb's jQuery integration ( > http://www.gebish.org/manual/current/#jquery-integration) > > Whichever route you use I'd suggest using a module class to abstract out > implementation details of how changing of the value it is implemented. > > On Wed, Dec 7, 2016 at 1:16 PM, 'tu Mimi' via Geb User Mailing List < > [email protected] <javascript:>> wrote: > >> Hi there, >> Geb is using JQuery to access the html components. You need to know the >> id, class... of the field/ popup/ date component. >> Regards >> Tu >> >> >> Am Mittwoch, 7. Dezember 2016 12:27:24 UTC+1 schrieb Janani Sampath Kumar: >>> >>> Hi Team, >>> >>> I'm a newbie to Geb and looking for some options to automate the Date >>> Range Field in a web page. >>> >>> 1. Field is non-editable >>> 2. On clicking, a calendar instance will pop-up where we need to select >>> the start date and end date >>> >>> Any help/guidance on the above is really appreciated ! >>> Thanks in advance ! >>> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/geb-user/57599dc2-2d1c-47d0-9b38-36be7768faa5%40googlegroups.com >> >> <https://groups.google.com/d/msgid/geb-user/57599dc2-2d1c-47d0-9b38-36be7768faa5%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/f92cf72b-e0a7-41f3-bbb2-a01fad351e10%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
