For example, open the browser in the following code and log in to Google in manual.
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "webdrivers"
gem "capybara", require: "capybara/dsl"
end
Capybara.current_driver = :selenium_chrome
Capybara.visit("https://www.google.co.jp/")
gets
However, if I execute it again, the login status will be canceled, and if it is 2FA, it is very troublesome.
Is there a good way?