multiple
This commit is contained in:
parent
3364ce6a0a
commit
60b717efbd
|
@ -3495,7 +3495,7 @@ func (d *Daemon) interactMultiple(tabID, interactionsJSON string, timeout int) (
|
|||
// For select elements, use JavaScript to set the value
|
||||
script := fmt.Sprintf(`
|
||||
(function() {
|
||||
const element = arguments[0];
|
||||
const element = this;
|
||||
if (element.tagName.toLowerCase() === 'select') {
|
||||
// Try to select by value first
|
||||
for (let option of element.options) {
|
||||
|
|
Loading…
Reference in New Issue