# rSquery 0.1.1

**URL:** <https://www.ruby-forum.com/t/rsquery-0-1-1/168092>\
**Category:** Ruby\
**Created:** [May 15, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/rsquery-0-1-1/168092 "2009-05-15T18:45:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivo\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d78d45/32.png) [@Ivo\_D](https://www.ruby-forum.com/u/Ivo_D)\
**Post date:** [May 15, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/rsquery-0-1-1/168092/1 "2009-05-15T18:45:19Z")

</div>

Hello all

rSquery aims to reduce the difficulties involved in writing selenium  
tests in cucumber environments for webapps that use jQuery.

The project contains several methods to help you with writing  
javascript commands for selenium and javascript based tests for  
cucumber or even rSpec.

It makes it possible to write stuff like (in jQuery enabled webapp):

- jquery(“#content”).wait\_for\_visible
- jquery(“#dialog button:contains(Ok)”).click
- jquery.wait\_for\_text(“User saved…”)
- jquery.wait\_for\_element(“.some\_element”)
- jquery(“#dialog div”).text.should have\_text(/some\_text/)
- jquery(“#dialog”).find(“.warning”)
- jquery(“#dialog”).html.should have\_tag(“button”, “Ok”)
- jquery(“#dialog”).should be\_visible
- jquery(“#dialog”) # page must have an element with id ‘dialog’

The project is at [GitHub - caifara/rsquery: Using jquery matchers and more in selenium](http://github.com/caifara/rsquery/tree/master)

Ivo D.  
by2.be
