multiple
This commit is contained in:
@@ -3493,7 +3493,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
||||
|
||||
case "select":
|
||||
// For select elements, set the value using JavaScript
|
||||
script := fmt.Sprintf("this.value = '%s'; this.dispatchEvent(new Event('change', { bubbles: true })); true", interaction.Value)
|
||||
script := fmt.Sprintf("(this.value = '%s', this.dispatchEvent(new Event('change', { bubbles: true })), true)", interaction.Value)
|
||||
result, err := element.Eval(script)
|
||||
if err != nil {
|
||||
interactionResult.Error = fmt.Sprintf("failed to select option: %v", err)
|
||||
|
Reference in New Issue
Block a user