diff --git a/daemon/daemon.go b/daemon/daemon.go index 0d137ef..aba8164 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -3495,7 +3495,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) ( // For select elements, use JavaScript to set the value script := fmt.Sprintf(` (function() { - const element = arguments[0]; + const element = this; if (element.tagName.toLowerCase() === 'select') { // Try to select by value first for (let option of element.options) {