Comments (6)
This should be fixed in https://github.com/microsoft/playwright-python/releases/tag/v1.41.2.
from playwright-python.
Can you provide us a introductions on how to reproduce this? This would help us a ton in order to triage and prioritise this!
from playwright-python.
create a new project with the latest playwright:
pip install playwright
pip install pytest
pip install pytest-playwright
main.py:
from playwright.sync_api import Page, expect
def test_red_step(page: Page):
page.goto("https://playwright.dev")
expect(page.locator("body")).to_be_hidden()
pytest.ini:
[pytest]
addopts =
--headed
--tracing retain-on-failure
run the test with playwright 1.39.0: red assertion step
run the test with playwright 1.40.0: white assertion step
run the test with playwright 1.41.0: white assertion step
from playwright-python.
I can reproduce:
1.39.0: good
1.40.0: bad
Caused by microsoft/playwright#28112.
This also affects Node.js without the test-runner, Playwright for Java, and probably .NET.
import { chromium, expect } from '@playwright/test';
(async () => {
const browser = await chromium.launch();
const context = await browser.newContext();
try {
await context.tracing.start({ screenshots: true, snapshots: true });
const page = await context.newPage();
await page.goto('https://example.com');
await expect(page).toHaveTitle('123');
} finally {
await context.tracing.stop({ path: 'trace.zip' });
}
await context.close();
await browser.close();
})();
Expected: Last step is red.
Actual: Its not red.
It also does not show the expect matcher name correctly:
from playwright-python.
has this issue been fixed yet ? if not can i contribute ?
from playwright-python.
from playwright-python.
Related Issues (20)
- [Docs]: Update documentation on basic authentication with pytest HOT 1
- [Bug]: BrowserType.connect doesn't work with the Pytest plugin HOT 1
- [Ports]: Backport client side changes
- [Question]:When I use connect_over_cdp and the download request method is POST, expect_download cannot work,This is a common bug
- How to wait a new page loading? HOT 1
- [Question]:When I use connect_over_cdp and the download request method is POST, expect_download cannot work HOT 5
- 👾👾[Bug]: Can not login twitter by the cookies HOT 3
- modify the browser options
- [Docs]: How to modify firefoxPrefs with python / pytest.ini HOT 3
- [Bug]: Playwright Sync API Usage Issue: Error Encountered When Running Multiple Test Files HOT 2
- [Bug]: context_browse.route is broken for requests initiated by service worker HOT 1
- [Bug]: Future exception was never retrieved future: <Future finished exception=TargetClosedError('Target page, context or browser has been closed')> HOT 1
- TimeoutError on locator click
- [Bug]: Website reached from Docker behaves differently HOT 1
- PyInstaller can't package chromium driver on x86_64[Bug]: HOT 4
- [Bug]: Blackscreen browser headless=False CHROME HOT 1
- Python Playwright doesn't work in my computer HOT 2
- Why does executing pytest --tracing on in some code not produce the trace.zip file and also delete the existing test-results directory HOT 6
- [Bug]: `EventContextManager` does not conform to `AbstractContextManager` protocol
- [Feature]: Add extra logging for the PW
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright-python.