Closed chillum closed 1 year ago
I think a better place to ask a question like this would be stack overflow.
If you look at the documentation it should be clear.
In pytest-selenium driver
is selenium
;)
You would probably want to write a fixture that wraps the driver fixture and adds your custom commands. Modifying the class is tricky under pytest can be tricky if you don't know when it's first imported.
Hi,
I want to extend the pytest-selenium methods, but adding the new method in WebDriver class somehow doesn't work and still reports
AttributeError: 'WebDriver' object has no attribute 'wait'
.I've tried to add the code in fixture override (as per docs) and just in my code.
I'm actually trying to add a method like this:
so I can use something like:
Any advice for accomplishing this? Thanks