From 39f8f2ed8d4a357b42da83298961d411d8322ba1 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 28 Aug 2023 17:39:02 +0200 Subject: [PATCH] fix(trace-viewer): use sdkLanguage for Pick Locator (#26737) Fixes https://github.com/microsoft/playwright/issues/26736 --- packages/trace-viewer/src/ui/snapshotTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/trace-viewer/src/ui/snapshotTab.tsx b/packages/trace-viewer/src/ui/snapshotTab.tsx index bbfc1e1f8d..b6efbd211a 100644 --- a/packages/trace-viewer/src/ui/snapshotTab.tsx +++ b/packages/trace-viewer/src/ui/snapshotTab.tsx @@ -241,7 +241,7 @@ export const InspectModeController: React.FunctionComponent<{ const injectedScript = new InjectedScript(win, false, sdkLanguage, testIdAttributeName, 1, 'chromium', []); recorder = new Recorder(injectedScript, { async setSelector(selector: string) { - setHighlightedLocator(asLocator('javascript', selector, false /* isFrameLocator */, true /* playSafe */)); + setHighlightedLocator(asLocator(sdkLanguage, selector, false /* isFrameLocator */, true /* playSafe */)); } }); win._recorder = recorder;