BTW, Mikhail created a custom jQuery selector :text, you have to update the selenium-server.jar from trunk/core/lib to run the tests.
Mikhail, do you have suggestion to improve the group locating if performance is a concern? Also, you may need to refactor the :text selector to allow partial matching similar to [attribute=value] [attribute^=value] [attribute$=value] [attribute*=value] [attribute*=value] is equals to :contains(text), but we do need to consider the support for [attribute^=value] [attribute$=value] On Apr 10, 2:58 pm, John <[email protected]> wrote: > I implemented group locating for jQuery selector, which turns out to > be pretty straightforward using > jQuery's :has() pseudo class and multiple selectors. For example, one > example group locating jquery > selector statement is > > $('form[method=get]:has(select#can, input#q, input[type=submit] > [value=Search]) input[type=submit][value=Search] > > I checked in the code and created test cases for it. Please see > TelluriumDownSearchModule and TelluriumDownSearchTestCase > for details. > > To use jQuery selector, simply put > > useJQuerySelector() > > in your UI module. > > But the whole task is not done yet. I need to change some container > objects to use both xpath and jquery selector. > > On Apr 9, 11:33 pm, John <[email protected]> wrote: > > > I checked in the customized selenium-server.jar to trunk/core/lib and > > committed > > the first attempt to automatically build jQuery selector. To use > > jQuery Selector, > > you should call > > > useJQuerySelector() > > > in your UI module. I created a test case, GoogleSearchTestCase and > > seems > > it is working, which is really encouraging. Please see > > GoogleSearchModule and > > GoogleSearchTestCase for more details. > > > One problem I faced is to escape the single quote in Java script. > > Because there are > > multiple String conversions along the path from Tellurium core to > > Selenium core, "\" is not > > really working. So, I work around this by using partial matching. > > > Next step will be to build jQuery selector for group locating and I > > also need to modify > > Tellurium objects to use jQuery selector. > > > Thanks, > > > Jian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
