| Chargeback Ref No | Checkout ID | Order ID | Order SN | Buyer ID | Buyer Username | Address | Type | Card | Device ID | Grand Total | Pay Date |
|---|
Upload a ZIP of your output\ folder, select individual PNG files, or select a folder. All methods can be used together โ files accumulate.
Or use the buttons below
pip install playwright playwright install chromium
pip install pillow gspread google-auth
All scripts in C:\Users\giaing.yap\Desktop\playwright test\
| Script | What it does |
|---|---|
| run_all.py | Main script โ reads cases from Google Sheet, navigates all 4 portals, captures and saves all screenshots per case |
| check_sessions.py | Checks whether all 4 portal sessions are still valid or expired, tells you which ones need renewal |
| save_session.py | Saves a fresh session for order-admin.shopee.sg โ outputs shopee_session.json |
| save_session_dms.py | Saves a fresh session for dms.cs.shopee.sg โ outputs dms_session.json |
| save_session_user_admin.py | Saves a fresh session for admin.user.shopee.io โ outputs user_admin_session.json |
| save_session_antifraud.py | Saves a fresh session for antifraud.admin.shopee.io โ outputs antifraud_session.json |
Before running anything, verify all portal sessions are still valid:
python "C:\Users\giaing.yap\Desktop\playwright test\check_sessions.py"
For any EXPIRED session, run the suggested save_session_*.py script, log in manually in the browser that opens, then press Enter to save.
Once all sessions are OK, run the main script from any terminal โ it automatically navigates to the correct folder:
python "C:\Users\giaing.yap\Desktop\playwright test\run_all.py"
Screenshots are saved to:
output\
โโโ {order_id}\
โโโ {checkout_id}_{order_id}_status_timeline.png
โโโ {checkout_id}_{buyer_id}_admin_user.png
โโโ {checkout_id}_{buyer_id}_antifraud_device.png
โโโ {checkout_id}_{buyer_id}_antifraud_cc.png
โโโ {checkout_id}_{order_id}_dms_rating.png โ only if buyer rating exists
Go to the Upload Screenshots tab. Three options โ all accumulate, can be mixed:
output\ contents and upload in one go. Recommended.Go to the Reports tab:
Select all approved cases and click ๐ฆ Package for Bank. A ZIP named {YYYYMMDD_HHMM}.zip will download:
{YYYYMMDD_HHMM}.zip
โโโ {chargeback_ref_no}/
โโโ {chargeback_ref_no}.pdf โ full investigation report
โโโ address_binding_time.pdf
โโโ card_binding_time.pdf
โโโ device_binding_time.pdf
โโโ POD_1 Order ID {order_id}.pdf
โโโ POD_2 Order ID {order_id}.pdf โ if multiple orders
โโโ Rating_1.pdf โ only if buyer rating exists
Note: / in chargeback ref numbers is replaced with - in folder/file names (e.g. 7M3/V1C052586 โ 7M3-V1C052586).