Nope. You can't make this check here because of gem loading issues. Even if you could be assured that it's in the object space, it doesn't mean it's being used. You have to check Capybara.current_session.driver.