def isselenium(session):
try:<EOL><INDENT>from capybara.selenium.driver import Driver<EOL><DEDENT>except ImportError:<EOL><INDENT>return False<EOL><DEDENT>return isinstance(session.driver, Driver)<EOL>
bool: Whether the session is using Selenium.