Skip to content

MaBlaGit/YourLogoAutomated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Page Object Pattern example - YourLogo website.

Description:

Page Object Pattern, implementation base on the http://automationpractice.com/index.php webpage.

Tests were implemented and run on:

  • System: Linux Ubuntu 16.04 LTS
  • Browsers: Firefox Quantum 58.0.2, Chrome 64.0.3282.167 (both 64-bit)
  • Selenium WebDriver: 3.9.0
  • Python: 3.6

To Run Tests - Linux Ubuntu way:

1.Clone/Download project: https://github.com/MaBlaGit/YourLogoAutomated.git

2.Install virtualenvwrapper

 $ pip install virtualenvwrapper

3.Run virtualenvwrapper and create hermetic virtualenv for the project

$ source /usr/local/bin/virtualenvwrapper.sh
$ mkvirtualenv --python=/usr/bin/python3.6 name-of-virtualenv
$ workon name-of-virtualenv

4.Go to YourLogoAutomated folder and add project to PYTHONPATH of current active virtualenv

$ add2virtualenv .

5.Install requred modules

$ make deps

6.Download drivers, unpack, make executable and copy to /usr/local/bin:

geckodriver: https://github.com/mozilla/geckodriver/releases

chromedriver: https://sites.google.com/a/chromium.org/chromedriver/

(example below shows how add to path geckodriver)

tar -xvzf geckodriver-v0.11.1-linux64.tar.gz
rm geckodriver-v0.11.1-linux64.tar.gz
chmod +x geckodriver
cp geckodriver /usr/local/bin/

Running tests

In order to run tests go to tests package, open Terminal and enter command

$ python3.6 search_product.py

Releases

No releases published

Packages

No packages published