# Patch visit method for Edge Browser only # Used for Player core
class Capybara::Session
  alias other_visit visit
  def visit(url)
    if Capybara.current_session.driver.browser.browser == :MicrosoftEdge
      Capybara.execute_script("window.location.href = '#{url}'")
    else
      other_visit(url)
    end
  end
end
