Matteo Nova
Matteo Nova
Same here with something like: ``` $ pytest path/to/some/test_playwright.py --tracing=on --output pytest-tracing ``` even if adding or changing the tracing with screenshots or video or completely omitting the `--output` param...
I created a couple of fixtures like that: ``` @pytest.fixture(scope="session") def mypage(browser, session_cookies): context = browser.new_context(storage_state=session_cookies) return context.new_page() @pytest.fixture(scope="session") def myfeature(mypage, backend): myfeature = MyFeaturePage( page= mypage, ) yield myfeature...
> It's intended that the --output only works with the given context and page fixture. If you manually launch a browser or create a browser context, --output will have no...
I'd say everything is feasible 😄 An idea could be iterate over all the contexts defined in browser and print everything. I could work a bit on this, if it...
> Finally I just used pytest --junit-xml instead of --output, it works like a charm I'm not sure about what you mean but `--output` provides a folder where the artifacts...
this doesn't solve for me: ``` SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Traceback (most recent call last):...