Skip to content

Commit 7558cc5

Browse files
committed
issue#229 drop redundant return 'options' for select JS function
1 parent 8bd6251 commit 7558cc5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/ferrum/node.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ def select(*values, by: :value)
157157
}
158158
element.dispatchEvent(new Event('input', { bubbles: true }));
159159
element.dispatchEvent(new Event('change', { bubbles: true }));
160-
return options
161-
.filter((option) => option.selected)
162-
.map((option) => option.value);
163160
}
164161
JS
165162
page.evaluate_func(function, self, values.join(","), by)

0 commit comments

Comments
 (0)