I have a situation when I’m using (using :selenium driver) multiple browsers with Capybara to test my front-end. How can I close some of them using Capybara, when they are not needed?
I have a situation when I’m using (using :selenium driver) multiple browsers with Capybara
Share
If the tabs/windows are opened using JavaScript, then JavaScript is allowed to close them. You can execute JS in Capybara test using
page.execute_script.