Skip to content

Fix typos #1482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playwright/_impl/_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def dispatch(self, msg: ParsedMessagePayload) -> None:
else:
object._channel.emit(method, self._replace_guids_with_channels(params))
except BaseException as exc:
print("Error occured in event listener", file=sys.stderr)
print("Error occurred in event listener", file=sys.stderr)
traceback.print_exc()
self._error = exc

Expand Down
2 changes: 1 addition & 1 deletion playwright/sync_api/_py37ThreadedChildWatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def add_child_handler(self, pid, callback, *args):
def remove_child_handler(self, pid):
# asyncio never calls remove_child_handler() !!!
# The method is no-op but is implemented because
# abstract base classe requires it
# abstract base classes requires it
return True

def attach_loop(self, loop):
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/download-blob.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
download("Hello world", "example.txt");
}
</script>
<a onclick="javascipt:downloadIt();">Download</a>
<a onclick="javascript:downloadIt();">Download</a>
</body>
</html>
2 changes: 1 addition & 1 deletion tests/async/test_defaultbrowsercontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def launch_persistent(tmpdir, launch_arguments, browser_type):
async def _launch(**options):
nonlocal context
if context:
raise ValueError("can only launch one persitent context")
raise ValueError("can only launch one persistent context")
context = await browser_type.launch_persistent_context(
str(tmpdir), **{**launch_arguments, **options}
)
Expand Down
2 changes: 1 addition & 1 deletion tests/async/test_focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def test_should_traverse_only_form_elements(page):
await page.set_content(
"""
<input id="input-1">
<button id="button">buttton</button>
<button id="button">button</button>
<a href id="link">link</a>
<input id="input-2">
"""
Expand Down