cobrateam/splinter — Issue #133: Add support to `from splinter import Browser`
Author: hugobr
Created: 2012-02-02 17:37:49+00:00
State: open

When splinter started I can't remember why we decided to do

from splinter.browser import Browser

But now I see it was not a good idea :-)

I would love to have:

from splinter import Browser

It is far easy to do. Just add an import to splinter/__init__.py containing:

from splinter.browser import Browser

Don't remember what are the python versions we support, but a relative import would be more cute:

from __future__ import absolute_import
from .browser import Browser

And it would be nice to change all tests to show how it is done using the new `from splinter import Browser`