question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fixture 'page' not found

See original GitHub issue

Created a file test_example.py which contains:

def test_example_is_working(page):
    page.goto("https://example.com")
    assert page.inner_text('h1') == 'Example Domain'
    page.click("text=More information")

Tried running by: pytest

and get:

E       fixture 'page' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.
$ pip list | grep playwright
playwright        1.8.0a1
pytest-playwright 0.0.11

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
akarp0vcommented, Feb 1, 2021

Finally, the reboot helped)

1reaction
dgozmancommented, Feb 1, 2021

Yes, I did

$ pip list | grep playwright
playwright        1.8.0a1
pytest-playwright 0.0.11

It didn’t help

Oh, now I see that I missed that in the original report. Sorry!

I’m glad that reboot helped. Closing the issue 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

fixture 'page' not found - pytest playwright - Stack Overflow
I ran this command, then restarted my command line and it started working. playwright install-deps. I hope this helps.
Read more >
pytest fixtures: explicit, modular, scalable
So when they run, outer will have no problem finding inner , because pytest searched from the tests' perspectives. Note. The scope a...
Read more >
59 Fixture Mixture ideas | fixtures, sink, water sense - Pinterest
Jan 9, 2012 - Explore Watermark & Company's board "Fixture Mixture" on Pinterest. See more ideas about fixtures, sink, ... 404 Error Page...
Read more >
fixture | Cypress Documentation
Otherwise the test engine will NOT have this pointing at the test context. describe('User page', () => { ...
Read more >
pytest-playwright - PyPI
A pytest wrapper with fixtures for Playwright to automate web browsers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found