multiple
This commit is contained in:
@@ -3494,6 +3494,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
||||
case "select":
|
||||
// For select elements, use JavaScript to set the value
|
||||
script := fmt.Sprintf(`
|
||||
(() => {
|
||||
if (this.tagName.toLowerCase() === 'select') {
|
||||
// Try to select by value first
|
||||
for (let option of this.options) {
|
||||
@@ -3514,6 +3515,8 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
})()
|
||||
`, interaction.Value, interaction.Value, interaction.Value, interaction.Value)
|
||||
|
||||
_, err := element.Eval(script)
|
||||
|
||||
Reference in New Issue
Block a user