-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
bugSomething isn't workingSomething isn't workingreleased🎭 compatabilityPlaywright compatability issue or upstream API changePlaywright compatability issue or upstream API change
Description
The snapshotter in Playwright attempts to call setAttribute
on the element it is passed.
This causes a TypeError (setAttribute
is not a function) because no such function exists on document
To reproduce:
const $document = await getDocument(page);
await getByRole($document, "heading", { level: 2, name: "Prepare file for upload"});
Workaround:
await page.mainFrame().evaluate(() => {
Object.defineProperty(document, "setAttribute", { value: () => {}});
});
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreleased🎭 compatabilityPlaywright compatability issue or upstream API changePlaywright compatability issue or upstream API change