mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Minor README updates to clarify element visibility
This commit is contained in:
parent
d087965f81
commit
b41fcb0f35
1 changed files with 4 additions and 1 deletions
|
@ -378,6 +378,9 @@ any Javascript errors that happen within the page.
|
|||
*A complete reference is available at
|
||||
[rubydoc.info](http://rubydoc.info/github/jnicklas/capybara/master)*.
|
||||
|
||||
**Note: By default Capybara will only locate visible elements. This is because
|
||||
a real user would not be able to interact with non-visible elements.**
|
||||
|
||||
**Note**: All searches in Capybara are *case sensitive*. This is because
|
||||
Capybara heavily uses XPath, which doesn't support case insensitivity.
|
||||
|
||||
|
@ -472,7 +475,7 @@ You can also find specific elements, in order to manipulate them:
|
|||
|
||||
```ruby
|
||||
find_field('First Name').value
|
||||
find_link('Hello').visible?
|
||||
find_link('Hello', :visible => :all).visible?
|
||||
find_button('Send').click
|
||||
|
||||
find(:xpath, "//table/tr").click
|
||||
|
|
Loading…
Reference in a new issue