Skip to content

machzqcq/Python_Page_Object

Repository files navigation

Python Behave Page Object Pattern

Selenium webdriver , python , behave
Tested on Python 2.7.10 & 3.4.2 and all libraries installed with the pip that came with 3.4.2

Index

What are Frameworks
Roadmap & Future State
Behave Project Structure
What is Page Object
Base Page Object
Modeling Page Objects
Implement Page Object Pattern
Complete Shopping Cart Workflow - Realtime project

Website

This repository is part of all tutorials on Selenium Framework
All of our tutorials on Ruby, Java, Python strive towards minimizing the language specific quirks

Usage

  1. If you do not know how to use git, click "Download zip" option at right corner
  2. For Git users, git clone
  3. Install Python 2.7 or higher. Follow this Install Python
  4. Install behave. Follow this [ Install behave ] (http://www.seleniumframework.com/python-basic/what-is-behave/)
  5. Complete installing Selenium webdriver components
  6. Open a shell/command prompt and from the root folder run "behave features --no-capture"
  7. Run behave with "-v" gives verbose log. For example running headless using phantomjs with -v creates ghostdriver.log

Further Coaching

  1. We provide instructor led coaching and training both at individual and corporate.
  2. Basics of Python Coding - Just enough to understand Automation.
  3. Coding to Designing of various frameworks & the "why" behind choices in real time projects.
  4. And more....

If you are interested, please reach out by emailing Email