docs(python): remove not-needed semicolons from code snippets (#18589)

This commit is contained in:
Kazuya Takei 2022-11-08 01:28:07 +09:00 committed by GitHub
parent 6a65a43e9a
commit 05471df8bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -85,11 +85,11 @@ Locator frameLocator = locator.frameLocator(':scope');
```
```python async
frameLocator = locator.frame_locator(":scope");
frameLocator = locator.frame_locator(":scope")
```
```python sync
frameLocator = locator.frame_locator(":scope");
frameLocator = locator.frame_locator(":scope")
```
```csharp

View file

@ -212,13 +212,13 @@ page.waitForLoadState(LoadState.NETWORKIDLE); // This resolves after "networkidl
```
```python async
await page.locator("button").click(); # Click triggers navigation
await page.wait_for_load_state("networkidle"); # This waits for the "networkidle"
await page.locator("button").click() # Click triggers navigation
await page.wait_for_load_state("networkidle") # This waits for the "networkidle"
```
```python sync
page.locator("button").click(); # Click triggers navigation
page.wait_for_load_state("networkidle"); # This waits for the "networkidle"
page.locator("button").click() # Click triggers navigation
page.wait_for_load_state("networkidle") # This waits for the "networkidle"
```
```csharp

View file

@ -19,7 +19,7 @@ def test_homepage_has_Playwright_in_title_and_get_started_link_linking_to_the_in
expect(page).to_have_title(re.compile("Playwright"))
# create a locator
get_started = page.get_by_role("link", name="Get started");
get_started = page.get_by_role("link", name="Get started")
# Expect an attribute "to be strictly equal" to the value.
expect(get_started).to_have_attribute("href", "/docs/intro")
@ -51,7 +51,7 @@ expect(page).to_have_title(re.compile("Playwright"))
```python
from playwright.sync_api import expect
get_started = page.get_by_role("link", name="Get started");
get_started = page.get_by_role("link", name="Get started")
expect(get_started).to_have_attribute("href", "/docs/installation")
get_started.click()