It's in the options, but I don't think it's available. https://playwright.dev/python/docs/api/class-locator#locator-screenshot-option-omit-background