Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: do not perform option selection while recording (#36863)

Pavel Feldman2122fb715f06
diff --git a/packages/injected/src/recorder/recorder.ts b/packages/injected/src/recorder/recorder.ts
index 7e20c8c78a..b65c8e9ff2 100644
--- a/packages/injected/src/recorder/recorder.ts
+++ b/packages/injected/src/recorder/recorder.ts
@@ -422,9 +422,7 @@ class RecordActionTool implements RecorderTool {
if (target.nodeName === 'SELECT') {
const selectElement = target as HTMLSelectElement;
- if (this._actionInProgress(event))
- return;
- this._performAction({
+ this._recordAction({
name: 'select',
selector: this._activeModel!.selector,
options: [...selectElement.selectedOptions].map(option => option.value),