diff --git a/daemon/daemon.go b/daemon/daemon.go index 198c96c..bf0d2c1 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -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 }));