Skip to content

jaydeepkarale/handle_frames_in_python_playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How To Handle Frames In Playwright Python

This repository contains code to demo handling of frames in Playwright Python 🎭

The entire testing was performed on local gird as well as LambdaTest Cloud Grid

Version Check

The code has been fully tested on the below versions

🐋 PyTest 7.3.1

🐍 Python 3.10.1

🎭 Playrwright 1.33

Env File

The secrets.env file needs to be amended to run the test on cloud grid by providing the username and access key.

The varriable RUN_ON can either have value local or cloud and based on that the tests will be run locally or on cloud grid

The variables BROWSER and PLATFORM can be used to set the operating system and browser when running tests on cloud grid

Running the tests locally

Set the variable RUN_ON=local in secrets.env and run the command

pytest -v

Running the tests on cloud grid

Set the variable RUN_ON=cloud in secrets.env and run the command

pytest -v

About

This repository contains Python Playwright code to demonstrate how to test content within iFrames

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages