Skip to content

paulocoliveira/python-headless-browser

Repository files navigation

How to Run Headless Browser in Selenium Python: A Detailed Python Headless Browser Tutorial

This is a code created to run tests on headless browsers using Python and Selenium, that was the goal of my LambdaTest Blog Article: How to Run Headless Browser in Selenium Python: A Detailed Python Headless Browser Tutorial

Sign Up LambdaTest for Free

Installation

As a prerequisite for this code, you need:

  1. Download and Install Python
  2. Install pytest, and Selenium WebDriver libraries
pip install -r requirements.txt
  1. Download and Install Visual Studio Code
  2. Configure Pytest in Visual Studio Code

Execution

In order to run this code, please run the command below in the project folder:

pytest

In order to run the code of one specific file, please run the command below, just changing the name of the pýthon file you want to run:

pytest test_headless-1.py

About

LambdaTest Blog Article: How to Run Headless Browser in Selenium Python: A Detailed Python Headless Browser Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages