This commit is contained in:
Josh at WLTechBlog 2025-08-18 13:46:39 -05:00
parent 3364ce6a0a
commit 60b717efbd
1 changed files with 1 additions and 1 deletions

View File

@ -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) {