Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is generic UI Automation framework using Selenium and Python Pytest.

NotificationsYou must be signed in to change notification settings

JaydipManiya/UI-Automation-Selenium-Python-Pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • This is generic UI Automation framework using Selenium and Python Pytest.

Setup:

  • [optional] Download and install Python3 fromhere (Ignore the step if you already have python installed)
  • [optional] Install pip module by following steps mentioned atpip_installation_guide
  • Clone this repo, navigate to UI-Automation-Framework-Selenium-Python-Pytest folder.
  • Execute requirements.txt file to install all the dependent python libraries using following command and make it pass without any error: pip install -r requirements.txt

Running the tests:

  • By default tests will run on Chrome browser, if you want to run on Firefox browser then pass following argument in run command: pytest -vs tests/test_amazon_login_search_add_product_to_cart.py --browser firefox
  • At the end of tests execution, framework will generate Log file at current folder with name "log-<YYMMDD_HHMMSS>.log".
  • Run following command to execute tests on Chrome. ex: pytest -vs tests/test_amazon_login_search_add_product_to_cart.py
  • Run following command to execute and generate pytest html report:pytest -vs --capture sys tests/test_amazon_login_search_add_product_to_cart.py --html=report.html

Notes:

  • No need to download browser drivers as this is implemented using webdriver manager which will automatically download driver.
  • If you are running tests/test_amazon_login_search_add_product_to_cart.py tests then make sure to update login credentials (LOGIN_EMAIL and LOGIN_PASSWORD) in utils/data/amazon_add_product_to_cart_data.py file.

About

This is generic UI Automation framework using Selenium and Python Pytest.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp