mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
feat(inspector): add the copy selector button (#9984)
This commit is contained in:
parent
c91ce5401e
commit
81ea40bb00
@ -121,6 +121,9 @@ export const Recorder: React.FC<RecorderProps> = ({
|
||||
setSelector(event.target.value);
|
||||
window.dispatch({ event: 'selectorUpdated', params: { selector: event.target.value } });
|
||||
}} />
|
||||
<ToolbarButton icon='files' title='Copy' onClick={() => {
|
||||
copy(selectorInputRef.current?.value || '');
|
||||
}}></ToolbarButton>
|
||||
</Toolbar>
|
||||
<CallLogView log={Array.from(log.values())}/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user