by jardah · 8y ago · 0 comments
For more advanced usage (like clicking, or submiting a search request) it would need to have some kind of scenario like: "Click on this" -> "wait till this loads" -> "type something here" -> "scroll to this" -> load data.
Which is possible with headless chrome, so the trick is to make it general and easy to use (something like recording what user does through chrome plugin). Maybe in future versions :)
click_link('Link Text')
fill_in('Password', with: 'Seekrit')
choose('A Radio Button')
check('A Checkbox')
uncheck('Another Checkbox')
select('Option', from: 'Select Box')
1) https://github.com/teamcapybara/capybara#navigating