added documentation on the evaluate_script method

This commit is contained in:
Dennis Rogenius 2009-12-12 13:37:29 +01:00
parent 525ba2d654
commit fb71b29f9f
1 changed files with 6 additions and 2 deletions

View File

@ -119,6 +119,10 @@ Querying:
find_button
field_labeled
Scripting:
evaluate_script Returns the value of the executed javascript (only works on javascript supported drivers)
Debugging:
save_and_open_page
@ -158,7 +162,7 @@ For ultimate control, you can instantiate and use a session manually.
Capybara does not try to guess what kind of selector you are going to give it,
if you want to use CSS with your 'within' declarations for example, you'll need
to do:
within(:css, 'ul li') { ... }
Alternatively you can set the default selector to CSS, which may help if you are
@ -233,4 +237,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.