r/Playwright • • 5d ago

Help needed beginners question

[deleted] — view deleted post

1 Upvotes

8 comments sorted by

2

u/According_Roughly 5d ago

Bot detection perhaps. Spend a little time investigating your companies production sites security rules.

1

u/Aleex1760 5d ago

I will ask, seems like the most probable reason. Thank you appreciate the help

1

u/MarisuBichara_48 4d ago

running automated scripts straight against prod without whitelisting the runner IP first is just asking to get blocked by the firewall.

1

u/Xiao20 5d ago

Not even being facetious here,

Step 1 - Claude
Step 2 - Claude Playwright MCP
Step 3 - Ask Claude Playwright MCP to debug.

Do you have any issues that may be there? Recaptcha? Is your production config set up ok?

1

u/Aleex1760 5d ago

No Recaptcha,conf should be okay, I think the problem is he maybe redirect for a second somewhere to validate the login or something (sorry not an expert).
Thank you tho,I checked what playwright mcp was seems really cool,didn't know abou it,I will check it out

1

u/Xiao20 5d ago

Yea I am unsure why there would be a redirect that would result in a blank page called "Working"

Do you have the end of the url for a review? Sounds like a holding page that dev push you down, we had to do some work to get around bot detection.

Attach Claude and it'll give you the run down from the network/console logs to help guide you.

1

u/Wise_Tomatillo5723 4d ago

Run it with --trace on and open the trace: a 'Working' page right after login is often a bot check or SSO redirect that only exists in prod, and the network tab will show which.