Make recorder inspect tool to copy the current selector to the user clipboard
This commit is contained in:
parent
e280d0bd35
commit
7195a57e28
|
|
@ -71,6 +71,7 @@ export const Recorder: React.FC<RecorderProps> = ({
|
||||||
if (focus)
|
if (focus)
|
||||||
setSelectedTab('locator');
|
setSelectedTab('locator');
|
||||||
setLocator(asLocator(language, selector));
|
setLocator(asLocator(language, selector));
|
||||||
|
navigator.clipboard.writeText(asLocator(language, selector));
|
||||||
};
|
};
|
||||||
|
|
||||||
window.playwrightSetFileIfNeeded = (value: string) => {
|
window.playwrightSetFileIfNeeded = (value: string) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue