WeSearch

My agent could see the dropdown. It just couldn't pick anything.

·4 min read · 0 reactions · 0 comments · 15 views
#ai#opensource#javascript
My agent could see the dropdown. It just couldn't pick anything.
TL;DR · WeSearch summary

The article discusses a technical issue encountered with a dropdown element in a Salesforce/Lightning support form embedded in a customer portal. The problem arose from the interaction between different layers of the Document Object Model (DOM) and how the agent's tool was unable to recognize the dropdown element. A patch was implemented to improve the element resolution process, allowing the tool to function correctly across iframes and shadow roots.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3810102) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } אחיה כהן Posted on May 24 My agent could see the dropdown. It just couldn't pick anything. #ai #opensource #javascript #postmortem The agent had a list. I asked it to pick an item. It refused. Element not found Refresh. Same. So I opened DevTools and pasted in: document.querySelector('select[name="status"]') // null Enter fullscreen mode Exit fullscreen mode null. On a page that obviously had a dropdown. I could see it. I could click it. I could expand it with the mouse.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)