Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Stop writing XPath. I built a tool to locate web elements using natural language.

If you've ever written a Selenium script, you know the pain: driver.find_element(By.XPATH, "//div[@class='form']/button[2]") It’s fragile. It’s unreadable. And when the DOM changes — it breaks. That’s why I built talk2dom, a Pytho…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

If you've ever written a Selenium script, you know the pain:




driver.find_element(By.XPATH, "//div[@class='form']/button[2]")






It’s fragile. It’s unreadable. And when the DOM changes — it breaks.



That’s why I built talk2dom, a Python tool that lets you locate DOM elements using natural language + an LLM.









🧠 The Problem



The hard part of web automation isn’t clicking — it’s locating.




  • Buttons with no ID

  • Forms wrapped in modals

  • Dynamic pages with dozens of similar <div>s



And writing XPath by hand? That’s not automation — that’s archaeology.









🛠️ The Tool



talk2dom does one thing really well:




🗣️ You describe the element.


🤖 It gives you a selector.







Example:






from talk2dom import get_locator

by, val = get_locator(driver, "Find the login button")
driver.find_element(by, val).click()






Internally, it sends the raw HTML + your instruction to an LLM (OpenAI, Groq or other providers), then returns:




("xpath", "//button[@type='submit']")






You still control the browser — it just tells you where to look.









🔓 Free model support (Groq)



You can use open models like LLaMA-3 via Groq:




export GROQ_API_KEY="your_key"









by, val = get_locator(driver, "Find the search field", model="llama-3.3-70b-versatile", model_provider="groq")






It’s fast — and free.









📦 Install






pip install talk2dom












🤖 Built for LLM-native workflows




  • Structured function call output (Pydantic)

  • Works with both driver or scoped WebElement

  • No hallucinations — just selectors









📌 TL;DR



If you:




  • Write automation scripts

  • Build LLM-based web agents

  • Hate writing XPath



Try talk2dom.


You might never inspect the DOM manually again.







Feedback and PRs welcome 🙌


Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Stop writing XPath. I built a tool to locate web elements using natural language.

Thematisch verwandte Begriffe: Stop, writing, XPath, built · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick