This commit is contained in:
Josh at WLTechBlog 2025-08-18 15:29:55 -05:00
parent 439ae4b5f7
commit 89addac0fd
1 changed files with 1 additions and 1 deletions

View File

@ -3499,7 +3499,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
// If text selection failed, the value might be the actual option value
// Try to find and select by matching option value using page.Eval to avoid element.Eval issues
script := fmt.Sprintf(`
const element = document.querySelector("%s");
var element = document.querySelector("%s");
if (element) {
element.value = "%s";
element.dispatchEvent(new Event('change', { bubbles: true }));