[{'id': '387e7d2c-8423-4dc3-8475-04f0d5425d8b', 'namespaces': {'account': {'id': {'value': '48243eeb-5ced-4f3d-9dfe-fb5581cc0fe7'}, 'accountName': {'value': 'diaio'}}}}, {'headless': False}, {'headers': {'Cookie': 'cookies.map(cookie => `${cookie.name'}, ')\n    }\n  });\n  \n  console.log(': "PI Response status:'", 'body': ', await apiResponse.text());\n```\n\n## Key Considerations\n\n1. **Headless Mode**: Consider running with `headless: false` initially for debugging\n2. **Wait Times**: Add appropriate waits for redirects and page loads\n3. **Error Handling**: Implement proper error handling for login failures or API errors\n4. **Session Persistence**: Save cookies to file for reuse if needed\n5. **Rate Limiting**: Add delays between requests to avoid being rate-limited\n\n## Checklist for Implementation\n\n- [ ] Set up Playwright with Chromium\n- [ ] Navigate to login page\n- [ ] Perform login with credentials\n- [ ] Wait for authentication and redirect\n- [ ] Access the orders page\n- [ ] Extract session cookies/tokens\n- [ ] Make authenticated API request to `/api/oms/user/orders`\n- [ ] Parse and handle the API response\n- [ ] Add error handling and logging\n- [ ] Test in both headless and non-headless modes'}]