multiple
This commit is contained in:
1 parent
0f3b287591
commit
6b89f37fa3
3 files changed
+3
-2
No files matched your search
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
steps.sh
|
/steps.sh
|
||||||
/cremote
|
/cremote
|
||||||
/cremotedaemon
|
/cremotedaemon
|
||||||
|
/mcp/cremote-mcp
|
||||||
+1
-1
@@ -3493,7 +3493,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
|||||||
|
|
||||||
case "select":
|
case "select":
|
||||||
// For select elements, set the value using JavaScript
|
// 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)
|
result, err := element.Eval(script)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
interactionResult.Error = fmt.Sprintf("failed to select option: %v", err)
|
interactionResult.Error = fmt.Sprintf("failed to select option: %v", err)
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user