✅py
The main Pylenium fixture
Usage
The py
fixture is the recommended way to use Pylenium because it gives each test its own instance of Pylenium which makes it easy to scale and parallelize.
Import Pylenium
and add the type hint to your test (as shown above) so you get intellisense and autocomplete when writing tests 💪
Arguments
none
Yields
Pylenium - an instance of Pylenium driver that interacts with the web
py_config
When using py
, an instance of PyleniumConfig is also created and can be managed per test. You can access py_config
as a fixture or directly from py.config
Access by Fixture
Access Directly (recommended)
Recommended because it's fewer lines of code and you already have access via Pylenium
Last updated