Update capybara
This commit is contained in:
parent
c2b93cdfd8
commit
1bb387928c
13
capybara.md
13
capybara.md
|
@ -106,15 +106,19 @@ should_not doesn't wait for a timeout from the driver
|
||||||
.current_path
|
.current_path
|
||||||
.current_url
|
.current_url
|
||||||
|
|
||||||
|
## AJAX
|
||||||
|
|
||||||
|
using_wait_time(10) { ... }
|
||||||
|
|
||||||
## Misc
|
## Misc
|
||||||
|
|
||||||
drag
|
drag
|
||||||
field_labeled
|
field_labeled
|
||||||
wait_until
|
|
||||||
|
|
||||||
## Capybara RSpec matchers
|
## Capybara RSpec matchers
|
||||||
|
|
||||||
# all selectors have:
|
```rb
|
||||||
|
# all selectors have...
|
||||||
text: 'welcome'
|
text: 'welcome'
|
||||||
visible: true
|
visible: true
|
||||||
count: 4
|
count: 4
|
||||||
|
@ -141,6 +145,7 @@ should_not doesn't wait for a timeout from the driver
|
||||||
# alias: have_content
|
# alias: have_content
|
||||||
expect(page).to have_unchecked_field
|
expect(page).to have_unchecked_field
|
||||||
expect(page).to have_xpath
|
expect(page).to have_xpath
|
||||||
|
```
|
||||||
|
|
||||||
http://rubydoc.info/github/jnicklas/capybara/Capybara/RSpecMatchers
|
- <http://rubydoc.info/github/jnicklas/capybara/Capybara/RSpecMatchers>
|
||||||
http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Matchers
|
- <http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Matchers>
|
||||||
|
|
Loading…
Reference in New Issue