- Using playwright with typescript by adopting POM approach.
- Making few adjustments in
playwright.config.tsto handle timeout issues. - Added standard Viewport as well for browsers.
-
In headed mode, all three browsers (Chromium, Firefox, and WebKit) are working fine.
-
In headless mode, Firefox and WebKit work, but Chromium fails with the error: “You don't have permission to access http://www.douglas.de/de on this server.”
-
The following API is failing with
net::ERR_HTTP2_PROTOCOL_ERROR: https://www.douglas.de/jsapi/v2/products/search/category/01?fields=FULL&isApp=false&isAppleDevice=false&isCriteoConsent=true&isCriteoEnabled=true&isMobile=false&isOwnBrandEnabled=false&isSSR=false&pageSize=48
Because of this failure, we need to clear localStorage and handle the user consent again. This is why we see repetition for handling local storage and user consent.
- Sorry to create data driven approach the requirement didn't seem clarity to create connection between data.