--- title: "클립보드 내용 검증" slug: "verifying-clipboard-content" updated: 2025-06-12T11:54:48Z published: 2025-06-12T11:54:48Z canonical: "helpcenter.autify.com/verifying-clipboard-content" --- > ## Documentation Index > Fetch the complete documentation index at: https://helpcenter.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # 클립보드 내용 검증 일부 웹사이트에서는 사용자가 버튼(예: “클립보드에 복사”)을 클릭하여 URL 또는 텍스트 값을 클립보드에 복사할 수 있도록 지원합니다. 다음 스니펫을 사용하면 **정확한 값이 실제로 복사되었는지** 확인할 수 있습니다. ![](https://cdn.document360.io/c040854c-2c75-49d0-98e1-43f462e8657e/Images/Documentation/Screenshot 2025-05-26 at 17.13.03.png?sv=2026-02-06&spr=https&st=2026-11-16T22%3A53%3A21Z&se=2026-11-16T23%3A53%3A21Z&sr=b&sp=r&sig=0%2BV9PfQpZTBqYBPxfIRACkLdA6yOAxehB8b0xqECv3s%3D) ## 설정 방법 1. “복사” 버튼을 클릭하는 스텝 **다음에**, Playwright 코드 스텝을 추가하세요. 2. 아래 코드를 Playwright 코드 스텝에 붙여 넣으세요. ```typescript // Grant clipboard permissions for reading and writing context.grantPermissions([  'clipboard-write',  'clipboard-read', ]); // Read the clipboard content const result = await page.evaluate(async () => {  return await navigator.clipboard.readText(); }); // Verify that the clipboard contains the expected text expect(result).toContain('expected_copied_text_value'); // Optional: Log the clipboard value to the browser console await page.evaluate(r => console.log(r), result); ``` 1. Replace `expected_copied_text_value` with the expected value you want to assert against. > [!WARNING] > 이 스텝이 실행되는 동안 컴퓨터에서 다른 복사/붙여넣기 작업을 수행하면, 해당 내용이 캡처될 수 있습니다.