playwright
playwright copied to clipboard
[Feature]: remove exposed function
🚀 Feature Request
Currently there's page.exposeFunction().
We need page.removeExposedFunction().
I saw https://github.com/microsoft/playwright/issues/30422 , but removeExposedFunction is crucial for testing.
Example
No response
Motivation
it would enable event based testing which is crucial to us.
alternatively, just replace the function, without the Function "xyz" has been already registered error it currently throws.
puppeteer implemented it https://github.com/puppeteer/puppeteer/pull/10297
Any plan to do this on playwright?