Skip to content

Commit d913f1d

Browse files
authored
tests: added keyboard tests (microsoft#146)
1 parent 8697c92 commit d913f1d

File tree

6 files changed

+507
-6
lines changed

6 files changed

+507
-6
lines changed

playwright/element_handle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async def type(
151151
timeout: int = None,
152152
noWaitAfter: bool = None,
153153
) -> None:
154-
await self._channel.send("text", locals_to_params(locals()))
154+
await self._channel.send("type", locals_to_params(locals()))
155155

156156
async def press(
157157
self, key: str, delay: int = None, timeout: int = None, noWaitAfter: bool = None

tests/async/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
from playwright import async_playwright
1818

1919

20+
# Will mark all the tests as async
21+
def pytest_collection_modifyitems(items):
22+
for item in items:
23+
item.add_marker(pytest.mark.asyncio)
24+
25+
2026
@pytest.fixture(scope="session")
2127
async def playwright():
2228
async with async_playwright() as playwright_object:

tests/async/test_headful.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ async def test_headless_should_be_able_to_read_cookies_written_by_headful(
3434
):
3535
if is_chromium and is_win:
3636
pytest.skip("see https://github.com/microsoft/playwright/issues/717")
37+
return
3738
# Write a cookie in headful chrome
3839
headful_context = await browser_type.launchPersistentContext(
3940
tmpdir, **{**launch_arguments, "headless": False}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy