Files
playwrite/utils/离散备料计划维护数据清理.py
Misaka_Company 82819ae9d1 refactor: improve button navigation logic with proper state detection
- Add button-wrapper element locator for accessing action/navigation buttons
- Create dedicated button objects (delete, next material, collapse)
- Add _is_button_enabled() method using Playwright's is_enabled()
- Replace index-based navigation with button state-driven loop
- Add row number change detection to wait for data loading
- Simplify navigation logic with explicit button click handling

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-13 13:06:17 +08:00

17 KiB