multiple
This commit is contained in:
parent
439ae4b5f7
commit
89addac0fd
|
@ -3499,7 +3499,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
||||||
// If text selection failed, the value might be the actual option value
|
// If text selection failed, the value might be the actual option value
|
||||||
// Try to find and select by matching option value using page.Eval to avoid element.Eval issues
|
// Try to find and select by matching option value using page.Eval to avoid element.Eval issues
|
||||||
script := fmt.Sprintf(`
|
script := fmt.Sprintf(`
|
||||||
const element = document.querySelector("%s");
|
var element = document.querySelector("%s");
|
||||||
if (element) {
|
if (element) {
|
||||||
element.value = "%s";
|
element.value = "%s";
|
||||||
element.dispatchEvent(new Event('change', { bubbles: true }));
|
element.dispatchEvent(new Event('change', { bubbles: true }));
|
||||||
|
|
Loading…
Reference in New Issue