Skip to content

feat: add FlightHub domain skill for flight search automation#387

Open
PinkClaw wants to merge 1 commit into
browser-use:mainfrom
PinkClaw:domain-skill/flighthub
Open

feat: add FlightHub domain skill for flight search automation#387
PinkClaw wants to merge 1 commit into
browser-use:mainfrom
PinkClaw:domain-skill/flighthub

Conversation

@PinkClaw
Copy link
Copy Markdown

@PinkClaw PinkClaw commented May 23, 2026

Summary

Adds a domain skill for FlightHub.com flight search automation, covering:

  • Cloudflare anti-bot protection — the JS challenge that blocks curl/web_extract, and how a real browser session passes it
  • Direct search URL format — parameterized URL that bypasses the unautomatable custom datepicker entirely
  • UI form interaction — airport POI autocomplete via CDP keyboard events (works), datepicker investigation (custom component that rejects all programmatic click methods)
  • Results extraction — waiting for loading dialog, CSS selector heuristics for flight cards
  • Key lessons — real browser requirement, datepicker blocking status, JS-driven form submission

Testing

All techniques field-tested on 2026-05-22 using browser-harness + Mac Chrome CDP against live FlightHub.com.

Related

  • Existing expedia/flights-search.md domain skill follows the same format
  • SKILL.md mentions opening PRs for non-obvious site-specific knowledge

Summary by cubic

Adds a FlightHub.com domain skill that shows how to automate flight searches with a direct URL and a real browser, avoiding the click‑resistant datepicker. Includes anti-bot handling, minimal UI interactions, and reliable result extraction tips.

  • New Features
    • Adds agent-workspace/domain-skills/flighthub/flights-search.md.
    • Documents Cloudflare JS challenge and the need for a real browser (CDP/Playwright + residential IP).
    • Provides a parameterized direct search URL and recommends this path over UI entry.
    • Notes UI behavior: POI autocomplete works via keyboard events; datepicker rejects programmatic clicks; search is a <div> that needs CDP click.
    • Outlines results-page wait strategy and broad selectors/snippet for extracting flight cards; mentions order_by options.

Written for commit a53d49e. Summary will update on new commits. Review in cubic

Field-tested domain skill covering:
- Cloudflare anti-bot protection requirements
- Direct search URL format (the only reliable approach)
- UI form interaction (airport POI autocomplete)
- Datepicker blocking investigation (custom click-resistant component)
- Results page extraction patterns
- Key lessons from extensive field testing

The direct URL approach bypasses the unautomatable custom datepicker
and works reliably with a real browser session.
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant