참고소스 수정본
This commit is contained in:
10
참고/playwright-main/tests/assets/counter.html
Normal file
10
참고/playwright-main/tests/assets/counter.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<button>increment</button>
|
||||
<h1>count: 0</h1>
|
||||
<script>
|
||||
window.count = 0;
|
||||
document.querySelector('button').addEventListener('click', () => {
|
||||
++window.count;
|
||||
document.querySelector('h1').textContent = `count: ${window.count}`;
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user