Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yusukeiwaki/rails_simple-capybara-example
https://github.com/yusukeiwaki/rails_simple-capybara-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yusukeiwaki/rails_simple-capybara-example
- Owner: YusukeIwaki
- Created: 2021-07-23T13:52:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T11:52:07.000Z (about 3 years ago)
- Last Synced: 2024-10-18T08:18:24.101Z (3 months ago)
- Language: Ruby
- Size: 7.29 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Use Capybara only for launch server.
```rb
it 'can browse' do
page.goto("#{base_url}/test")
page.wait_for_selector('input', visible: true)
page.type_text('input', 'hoge')
page.keyboard.press('Enter')
expect(page.eval_on_selector('#content', 'el => el.textContent')).to include('hoge')
end
```![demo](demo.gif)