playwright: [Question] Application page is not loading in Playwright
I have a scenario when I search for the customer name in my application, for some reason playwright is not loading the page. It works fine on the local browser when I test it.
After debugging, I figured some of the header requests were missing(including Cookie) so I added it by using page.setExtraHTTPHeaders right after the openURL. I do see all the header requests now but page is still not loading.
I tried postman to see if API is returning all the data but at first, it was not showing me any data until I turned off SSL request validation in postman. Then it worked fine.
My question is if there is something in Playwright that might be blocking API request to load the page? Like in postman I had to turn off the SSL request validation for the request. Can someone please help? I also see Referrer Policy: unsafe-url in chromium when I run tests.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (7 by maintainers)
@gauravgandhi1315 Since I don’t see the error message or any screenshots, nor I have a repro to run locally, I am not able to help. Browsers are different, something may work in Firefox and not work in Chromium. That’s why cross-browser testing is useful 😄
As a last resort, try recording a trace and sharing it with us. Maybe we can spot an issue from the trace.