Improve TradingView layout loading with better debugging and selection logic

- Added comprehensive layout menu item detection with multiple selectors
- Implemented debug screenshots for layout menu and after layout changes
- Added better error handling and logging for layout selection
- Improved text matching with exact and partial match strategies
- Added fallback comprehensive search with direct click functionality
- Fixed TypeScript issues with element handle clicking
This commit is contained in:
root
2025-07-09 14:45:04 +02:00
parent 06842efbbd
commit b2d02cd716
6 changed files with 207 additions and 64 deletions

View File

@@ -40,6 +40,7 @@ export async function POST(req: NextRequest) {
return NextResponse.json({
...result,
layoutsAnalyzed: finalLayouts,
settings: {
symbol: finalSymbol,
timeframe: finalTimeframe,