Ive extended DslContext to support the following calls: def ArrayList getSelectorProperties(String jqSelector, List<String> props) def ArrayList getSelectorText(String jqSelector) def Object getSelectorFunctionCall(String jqSelector, String fn)
the first function takes a jquery selector, and a list of DOM properties to gather, and returns an array list of hashmaps containing a mapping of the given propeties to their values in the DOM elements selected by the given jquery the second function returns an array list of strings where each string is the text of each element selected by the jquery the last function is a genetic function that takes jquery selector and a String contain a javascript function which will be called with the context of the wrapped set selected by the jquery selector (ie 'this') and must return json which will be returned as either a HashMap or ArrayList I think these 3 functions give us a foundation to build any imaginable call that can return any number of values. The only problem i see with the current setup is that it can not be used with the current UiObjects which already contain locators, but these locators only select a single element, and are not as useful as full fledged jquery locators. Do you have any thoughts on how to make this functionality work more in line with the framework? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
