1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix README code block syntax

This broke syntax highligthing on GitHub
This commit is contained in:
Alyssa Ross 2017-11-01 13:55:50 +00:00
parent c38f56b45d
commit 07af41f7cb
No known key found for this signature in database
GPG key ID: E7DCC566F9A36D30

View file

@ -549,7 +549,7 @@ If you find yourself needing to use this a lot you may be better off adding a [c
```ruby ```ruby
find_field('First Name'){ |el| el['data-xyz'] == '123' } find_field('First Name'){ |el| el['data-xyz'] == '123' }
find("#img_loading"){ |img| img['complete'] == true } find("#img_loading"){ |img| img['complete'] == true }
```` ```
**Note**: `find` will wait for an element to appear on the page, as explained in the **Note**: `find` will wait for an element to appear on the page, as explained in the
Ajax section. If the element does not appear it will raise an error. Ajax section. If the element does not appear it will raise an error.
@ -894,7 +894,7 @@ To permanently switch the current session to a different session
```ruby ```ruby
Capybara.session_name = "some other session" Capybara.session_name = "some other session"
```` ```
### <a name="using-sessions-manually"></a>Using sessions manually ### <a name="using-sessions-manually"></a>Using sessions manually