From 912afcd792f92b3a7b3724a7e0ce9a9563911909 Mon Sep 17 00:00:00 2001 From: not-a-patch Date: Fri, 17 Apr 2020 09:57:01 +0100 Subject: [PATCH 1/2] Update capybara.md Capybara renamed click to click_on From their history: Version 0.4.0.rc Session#click has been renamed click_link_or_button and the old click has been deprecated Version 0.4.1 New click_on alias for click_link_or_button, shorter yet unambiguous. [Jonas Nicklas] --- capybara.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capybara.md b/capybara.md index 689d4858b..deebbf0e0 100644 --- a/capybara.md +++ b/capybara.md @@ -13,7 +13,7 @@ tags: [Featurable] ### Clicking links and buttons - click 'Link Text' + click_on 'Link Text' click_button click_link From e961eb3a5087072760de6fb7949d0f2ed81dd3a2 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 13 Jun 2020 10:12:49 +1000 Subject: [PATCH 2/2] Update capybara.md --- capybara.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/capybara.md b/capybara.md index deebbf0e0..1423b4762 100644 --- a/capybara.md +++ b/capybara.md @@ -13,9 +13,11 @@ tags: [Featurable] ### Clicking links and buttons - click_on 'Link Text' - click_button - click_link +```ruby +click_on 'Link Text' +click_button +click_link +``` ### Interacting with forms