✅py
The main Pylenium fixture
Last updated
The main Pylenium fixture
Last updated
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
none
Pylenium - an instance of Pylenium driver that interacts with the web
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
Recommended because it's fewer lines of code and you already have access via Pylenium