diff --git a/daemon/daemon.go b/daemon/daemon.go index e266464..7674380 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -3495,19 +3495,19 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) ( // For select elements, use page.Eval instead of element.Eval to avoid apply issues script := fmt.Sprintf(` (() => { - const element = document.querySelector('%s'); + const element = document.querySelector("%s"); if (element && element.tagName.toLowerCase() === 'select') { // Try to select by value first for (let option of element.options) { - if (option.value === '%s') { - element.value = '%s'; + if (option.value === "%s") { + element.value = "%s"; element.dispatchEvent(new Event('change', { bubbles: true })); return true; } } // Try to select by text if value didn't work for (let option of element.options) { - if (option.text === '%s') { + if (option.text === "%s") { element.value = option.value; element.dispatchEvent(new Event('change', { bubbles: true })); return true;