Skip to main content

Python Modules for Selenium UnitTest

Installation

pip install selenium-unittest-common

Usage

from selenium_unittest_common.unittest import test_case

class SampleTestCase(test_case.BaseTestCase):
    @classmethod
    def setUpClass(cls):
        super(SampleTestCase, cls).setUpClass()
        cls.base_url = 'https://www.google.com'
        cls.page_url = cls.base_url

    @classmethod
    def tearDownClass(cls):
        cls.driver.close()
        cls.driver.quit()

    def setUp(self):
        super(SampleTestCase, self).setUp()
        self.driver.get(self.page_url)

Build & Pylint

  1. Make sure below modules are installed:
  • invoke
  • pylint
  1. Execute the following command
invoke clean build

Docker

Launching Container

docker-compose up -d --build

Executing Python Script

docker exec -it python python /root/script/sample.py

TODO

  • Add support for FireFox.

Metadata

Release files for selenium-unittest-common 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for selenium-unittest-common 1.0.3
File Size Uploaded Provenance Actions
selenium-unittest-common-1.0.3.tar.gz 4.0 kB Without provenance Details for selenium-unittest-common-1.0.3.tar.gz

Release files / selenium-unittest-common-1.0.3.tar.gz

Download URL selenium-unittest-common-1.0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a08604340598846bae910c6b16e38f3110ece86652f04c3d7ea3ee380465ede
BLAKE2b-256 checksum
How to use checksums
5f02fad1cf95b7416b3f6070afe0b459f654172b86f5a0432feabd225a5d917b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Security for selenium-unittest-common 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page