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
|
// For select elements, use JavaScript to set the value
|
||||||
script := fmt.Sprintf(`
|
script := fmt.Sprintf(`
|
||||||
(function() {
|
(function() {
|
||||||
const element = arguments[0];
|
const element = this;
|
||||||
if (element.tagName.toLowerCase() === 'select') {
|
if (element.tagName.toLowerCase() === 'select') {
|
||||||
// Try to select by value first
|
// Try to select by value first
|
||||||
for (let option of element.options) {
|
for (let option of element.options) {
|
||||||
|
|
Loading…
Reference in New Issue