I\'m trying to open a link by clicking on it using capybara/poltergeist which opens up in a new tab.
I can\'t seem to get it working.
@session.find
This is what worked for me using Capybara 3.33:
new_window = window_opened_by do click_link 'Go to external page' end within_window new_window do assert_current_path 'http://external-page.com/?q=lala' end