multiple
This commit is contained in:
parent
dda9dbe915
commit
3364ce6a0a
|
@ -3494,6 +3494,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
||||||
case "select":
|
case "select":
|
||||||
// For select elements, use JavaScript to set the value
|
// For select elements, use JavaScript to set the value
|
||||||
script := fmt.Sprintf(`
|
script := fmt.Sprintf(`
|
||||||
|
(function() {
|
||||||
const element = arguments[0];
|
const element = arguments[0];
|
||||||
if (element.tagName.toLowerCase() === 'select') {
|
if (element.tagName.toLowerCase() === 'select') {
|
||||||
// Try to select by value first
|
// Try to select by value first
|
||||||
|
@ -3515,6 +3516,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
})()
|
||||||
`, interaction.Value, interaction.Value, interaction.Value)
|
`, interaction.Value, interaction.Value, interaction.Value)
|
||||||
|
|
||||||
result, err := element.Eval(script)
|
result, err := element.Eval(script)
|
||||||
|
|
Loading…
Reference in New Issue