Jonas Nicklas
dbe7d8ad22
Ignore whitespace for has_content, closes #56
2010-03-22 23:06:33 +00:00
Jonas Nicklas
7dba3bb9b9
Put most relevant methods at top of xpath class
2010-03-12 20:13:10 +01:00
Jonas Nicklas
eef3a2c6bb
Send input with custom types
...
This puts the rack-test driver more inline with
how real browsers work by sending all inputs
with types it doesn't recognize as though they
were type="text".
2010-03-12 20:11:21 +01:00
Jonas Nicklas
113823e3b1
Make from_css an instance method on XPath
2010-03-12 19:16:09 +01:00
Bodaniel Jeanes
ffe2a89d38
Fixed failing tests so input[@type='button'] can now be found via the value of the 'alt' attribute
2010-02-25 15:36:57 +10:00
Jonas Nicklas
823b2dd28b
Added has_table?
2010-02-20 22:41:53 +01:00
Jonas Nicklas
7e7a7eeb2d
Added has_select? method
2010-02-20 20:43:32 +01:00
Pavel Gabriel
9ad3ad3a25
Add xpath query for input type=button into XPath.button
2010-02-19 02:29:53 +02:00
Jonas Nicklas
a0a249a0af
has_field? :with => foo works with textareas
2010-02-05 09:04:47 +01:00
Jonas Nicklas
5117a0101b
default blank hash for text area options
2010-01-30 20:28:45 +01:00
Jonas Nicklas
2cb0548bfe
Added has_checked_field? and has_unchecked_field?
2010-01-18 22:31:22 +01:00
Jonas Nicklas
5150ad429f
Added has_link? and has_field?
2010-01-18 21:28:06 +01:00
Thorbjørn Hermansen
233dbbde4c
Added support for following links containing only an image via it's alt-attribute
...
Given the following HTML:
<a href="/foo"><img src="img.jpg" alt="Img alt text" /><a/>
@session.click_link("Img alt text") will now work and follow to "/foo"
2010-01-15 16:13:48 +01:00
Jonas Nicklas
f874b176da
Edge cases for links and buttons
...
Links with anchors, without hrefs, forms without
action.
2010-01-11 21:59:22 +01:00
Jonas Nicklas
159424151b
Prefer exact matches over partial, links & buttons
...
This aligns links and buttons with the behaviour
of fields for more consistent behaviour
2010-01-11 21:18:32 +01:00
Jonas Nicklas
6e885bec4d
refactored XPath
2010-01-11 20:36:05 +01:00
Louis T
bb887c5d1d
added basic html5 input types
2010-01-08 00:08:55 -05:00
Dan Dofter
3072fdbe8e
Allow referencing form elements by name in addition to id and label.
2010-01-05 17:25:32 -08:00
Jonas Nicklas
6a3abbe006
Whitespace!
2010-01-01 17:48:39 +01:00
Jonas Nicklas
741c153cb4
Allow partial matches for submit/button values
2009-12-29 10:13:09 +01:00
Lenny Marks
ee49df6561
Pulled out find/have methods into Searchable module to be shared by Session and Node(for relative searching)
2009-12-24 00:41:34 -05:00
Jonas Nicklas
6204142a8c
Revert "added click_element with specs (only works in webdriver so far)"
...
I think I changed my mind about this, I think this method clutters the API
This reverts commit 7b8e6a640d
.
2009-12-17 18:22:12 +01:00
Andrew Brown
7b8e6a640d
added click_element with specs (only works in webdriver so far)
2009-12-16 13:43:15 +01:00
Jonas Nicklas
ce914ed48e
Added support for labels without 'for' Closes #18
2009-12-15 23:31:57 +01:00
Jonas Nicklas
34e064fa4c
Add field doesn't need a block
2009-12-15 23:27:52 +01:00
Jonas Nicklas
72d01848da
Expose append and prepend as public for xpath
2009-12-13 15:02:25 +01:00
Jonas Nicklas
bb2b98cc30
Merge remote branch 'robholland/master'
...
Conflicts:
lib/capybara/session.rb
2009-12-12 22:09:35 +01:00
Jonas Nicklas
9c9f3684a9
Moved waiting back into session where it belongs
...
Also expose the new wait_for method
As an added bonus, find and all now accept XPath
instances and handle them correctly
2009-12-12 21:46:08 +01:00
Jonas Nicklas
ae48b83ded
Correct problem with partial matches
2009-12-09 21:53:12 +01:00
Jonas Nicklas
8b31aba0b1
Find exact label matches before partial matche
2009-12-09 20:25:48 +01:00
Jonas Nicklas
75730ef137
Move button and link xpaths into XPath class
2009-12-09 19:17:01 +01:00
Jonas Nicklas
39081f3c7d
Move fieldset, table and content into xpath class
2009-12-09 19:11:52 +01:00
Jonas Nicklas
8d44e8cb74
Added fancy XPath generation class
2009-12-09 19:03:55 +01:00