Commit c8610caf authored by nextime's avatar nextime

Increase button selector timeout to 70 seconds

- Set explicit timeout of 70 seconds for button click operation
- This is 10 seconds more than the 60-second final response timeout
- Prevents button selector timeouts that were causing failures
- Ensures button click waits long enough for slow-loading pages
- Addresses user feedback about button selector timeout issues

The timeout hierarchy is now:
- Button click: 70 seconds
- Final response detection: 60 seconds
- Main JSON detection: 45 seconds
- Container selector: 48 seconds
parent 2cf42f1e
...@@ -400,7 +400,7 @@ USER'S ACTUAL QUESTION: ...@@ -400,7 +400,7 @@ USER'S ACTUAL QUESTION:
try: try:
await page.fill(config['input_selector'], modified_prompt) await page.fill(config['input_selector'], modified_prompt)
await page.click(config['send_button_selector']) await page.click(config['send_button_selector'], timeout=70000) # 70 seconds (10 seconds more than final response timeout)
except Exception as e: except Exception as e:
logging.error(f"Error interacting with page for {chatbot_name}: {str(e)}") logging.error(f"Error interacting with page for {chatbot_name}: {str(e)}")
return f"Error: Failed to input prompt or click send button: {str(e)}" return f"Error: Failed to input prompt or click send button: {str(e)}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment