This commit is contained in:
Josh at WLTechBlog 2025-08-18 14:06:05 -05:00
parent 0f3b287591
commit 6b89f37fa3
3 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
steps.sh /steps.sh
/cremote /cremote
/cremotedaemon /cremotedaemon
/mcp/cremote-mcp

View File

@ -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.