writing new splinter drivers¶
The process of creating a new splinter browser is really simple: you just need to implement a TestCase (extending tests.base. BaseBrowserTests) and make all tests green.
Here is an example: imagine you’re creating the Columbia driver, you would add the test_columbia.py file containing some code like this:
from splinter import Browser from tests.base import BaseBrowserTests class ColumbiaTest(BaseBrowserTests): @classmethod def setUpClass(cls): cls.browser = Browser('columbia') # ...
Use make test to run the tests:
$ make test which=tests/test_columbia.py