fix: select issue in Windows with Edge (#31270)
This commit is contained in:
parent
1cbc67144a
commit
838c572209
|
|
@ -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: []
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue