Skip to main content

A Python Selenium Framework Which Makes Code More Easy to Maintain and Read

Project description

SeleniumFramework

Backgrounds

Well, when i looked into my previous codes, I found 6 years back (Dec.2012) when I just joined Autodesk, I wrote a Selenium Framework which was used by several teams within Autodesk.

Now 6 years passed and I already left Autodesk, maybe it's time to share to Github, lol.

This framework provides a way to code Selenium Automation with Layers instead of wrting un-resuable and un-readable codes. Suggested layers are:

  • Pages: define elements and pages
  • Actions: define test actions using web elements defined in "pages"
  • Test Cases: combination of actions

I made some tests these days and prooved these codes can be executed from Mac using Python 3.6.

If I have time, i will work on the follwoing:

  • HTML reports
  • make it more compatible with Firefox on Windows or Linux
  • test headless

Don't laugh at me if codes looks ugly for you, i wrote it 6 years ago, lol

Usage

1. Install this package:
pip install pyselenium-framework
2. Create a folder under your application to store Chrome/Firefox binary files, let's say folder called:
driver_binary_files
3. Download binary files and put them there.
4. Start to build your awesome project simply by:
import selenium_framework

Sample Code and Structures

TBD later, but in the meantime, please refer to "AUT" folder

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyselenium_framework-0.2.0.tar.gz (100.6 kB view details)

Uploaded Source

Built Distribution

pyselenium_framework-0.2.0-py3-none-any.whl (117.5 kB view details)

Uploaded Python 3

File details

Details for the file pyselenium_framework-0.2.0.tar.gz.

File metadata

  • Download URL: pyselenium_framework-0.2.0.tar.gz
  • Upload date:
  • Size: 100.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyselenium_framework-0.2.0.tar.gz
Algorithm Hash digest
SHA256 698b34466d359b23eb42958f1d53f718b1fd7f8af8ac92df60626f5e9d8f8eae
MD5 7949063e0d5dc420aafedfd10cb6628a
BLAKE2b-256 af06b1b1d2abd1140871d5fb8572baf2fd85fc169fbad91de8d6d0aa333687b3

See more details on using hashes here.

File details

Details for the file pyselenium_framework-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyselenium_framework-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 117.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for pyselenium_framework-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24e5fd83c1250c72280e871a72de8aeaed85215b36690098cdc55a38f0d77dde
MD5 49c42599f7108b578907a4d37b67ec95
BLAKE2b-256 beec97775b1f9868ee3d15269e19643eb8d0b35f30b9bd60bbfcb3524c84158d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page