multiple
This commit is contained in:
parent
0f3b287591
commit
6b89f37fa3
|
@ -1,3 +1,4 @@
|
|||
steps.sh
|
||||
/steps.sh
|
||||
/cremote
|
||||
/cremotedaemon
|
||||
/mcp/cremote-mcp
|
||||
|
|
|
@ -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)
|
||||
|
|
BIN
mcp/cremote-mcp
BIN
mcp/cremote-mcp
Binary file not shown.
Loading…
Reference in New Issue