mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
12 lines
373 B
HTML
12 lines
373 B
HTML
<script src='../../web.js'></script>
|
|
<script>
|
|
async function setup(product, wsEndpoint) {
|
|
window.browser = await window.playwrightweb[product].connect(wsEndpoint);
|
|
window.context = await window.browser.newContext();
|
|
window.page = await window.context.newPage();
|
|
}
|
|
async function teardown() {
|
|
await window.context.close();
|
|
await window.browser.close();
|
|
}
|
|
</script> |