fix: select issue in Windows with Edge (#31270)

This commit is contained in:
Fumiaki MATSUSHIMA 2024-06-17 17:28:07 +09:00 committed by GitHub
parent 1cbc67144a
commit 838c572209
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -356,7 +356,7 @@ class RecordActionTool implements RecorderTool {
return;
this._performAction({
name: 'select',
selector: this._hoveredModel!.selector,
selector: this._activeModel!.selector,
options: [...selectElement.selectedOptions].map(option => option.value),
signals: []
});

View File

@ -557,6 +557,7 @@ await page.Locator("#checkbox").UncheckAsync();`);
const locator = await recorder.hoverOverElement('select');
expect(locator).toBe(`locator('#age')`);
await page.locator('select').click();
const [message, sources] = await Promise.all([
page.waitForEvent('console', msg => msg.type() !== 'error'),