Skip to content

Repository files navigation

PWAF (Python Webdriver Automation Framework)

This is web automation framework, implemented using Python & Webdriver. Page Object Model (POM) is used to make the code more readable, maintainable, and reusable.

Prerequisite:

  1. Python
  2. pip
  3. Selenium/WebDriver
  4. nosetests & nose-html-reporting
  5. Browsers (Firefox, Chrome, IE)
  6. Respective Browser drivers
  7. Pycharm

How to run?

Test scripts can be executed by nosetests:

nosetests -s -v --nologcapture <test-script.py>

e.g: nosetests -s -v --nologcapture checkbox_page_test.py

Execute different group of test:

nosetests -s -v --nologcapture -a group= <test-script.py>

e.g: nosetests -s -v --nologcapture -a group=smoke all_tests.py

Get Test-reports:

nosetests -s -v --nologcapture --with-html --html-report= <test-script.py>

e.g: nosetests -s -v --nologcapture --with-html --html-report=test_report.html checkbox_page_test.py

Note: Kindly set the respective browser's driver path either to System variable or update it in drivermanager.py

e.g: self.driver = webdriver.Firefox(executable_path="geckodriver path") # in case of Firefox browser.

Execution:

Execution


Coverage Plan:

ContentsStatus
Framework levelPage Object ModelDone
ProfilesDone
Grids
Cross browsers & cross platform
LocatorsLearning how to get locators.
Functionality To AutomateChallenging DOMDone
CheckboxesDone
Context MenuDone
Disappearing ElementsDone
Drag and DropDone
DropdownDone
Dynamic Content
Dynamic ControlsDone
Dynamic LoadingDone
File DownloadDone
File UploadDone
Floating Menu
FramesDone
Horizontal Slider
HoversDone
Infinite Scroll
JQuery UI Menus
JavaScript Alerts
Key Presses
Large & Deep DOM
Multiple WindowsDone
Nested FramesDone
Notification Messages
Redirect Link
Shifting Content

About

Python Webdriver Automation Framework

Topics

Resources

Stars

40 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages