Flask client

To use the flask driver, you need to install Flask, lxml and cssselect. You can install all of them in one step by running:

$ pip install splinter[flask]

Using Flask client

To use the flask driver, you’ll need to pass the string flask and an app instances via the app keyword argument when you create the Browser instance:

from splinter import Browser
browser = Browser('flask', app=app)

Note: if you don’t provide any driver to Browser function, firefox will be used.

When visiting pages with the Flask client, you only need to provide a path rather than a full URL. For example:

browser.visit('/my-path')

API docs