Skip to content

Make selenium dependency optional #30

@bittner

Description

@bittner

I'd like to use the PageObject pattern, but not necessarily use Selenium.

The reason for this is, that when I use Django I have the test client available for headless operation. In other words, I do not operate a Web browser but just the Django application instead. That's enough for getting the templates rendered, so that I can evaluate the page content (which speeds up test execution significantly).

You could allow Selenium to be install via extras, as described in the Python Packaging Guide, e.g.

$ python3 -m pip install page-object[selenium]

This, without the "extra features" in square brackets page-object would just install the minimum functionality that I require, e.g.

$ python3 -m pip install page-object

which would, for obvious reasons, speed up test execution in CI pipelines or when using Tox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions