chore: roll Playwright, remove localOutputDir (#471)
This commit is contained in:
parent
13cd1b4bd9
commit
f20ae22ec6
15 changed files with 73 additions and 77 deletions
|
|
@ -57,7 +57,7 @@ const screenshot = defineTool({
|
|||
`// Screenshot ${isElementScreenshot ? params.element : 'viewport'} and save it as ${fileName}`,
|
||||
];
|
||||
|
||||
const locator = params.ref ? snapshot.refLocator(params.ref) : null;
|
||||
const locator = params.ref ? snapshot.refLocator({ element: params.element || '', ref: params.ref }) : null;
|
||||
|
||||
if (locator)
|
||||
code.push(`await page.${await generateLocator(locator)}.screenshot(${javascript.formatObject(options)});`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue