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;
|
return;
|
||||||
this._performAction({
|
this._performAction({
|
||||||
name: 'select',
|
name: 'select',
|
||||||
selector: this._hoveredModel!.selector,
|
selector: this._activeModel!.selector,
|
||||||
options: [...selectElement.selectedOptions].map(option => option.value),
|
options: [...selectElement.selectedOptions].map(option => option.value),
|
||||||
signals: []
|
signals: []
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -557,6 +557,7 @@ await page.Locator("#checkbox").UncheckAsync();`);
|
||||||
|
|
||||||
const locator = await recorder.hoverOverElement('select');
|
const locator = await recorder.hoverOverElement('select');
|
||||||
expect(locator).toBe(`locator('#age')`);
|
expect(locator).toBe(`locator('#age')`);
|
||||||
|
await page.locator('select').click();
|
||||||
|
|
||||||
const [message, sources] = await Promise.all([
|
const [message, sources] = await Promise.all([
|
||||||
page.waitForEvent('console', msg => msg.type() !== 'error'),
|
page.waitForEvent('console', msg => msg.type() !== 'error'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue