multiple
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user