docs(python): remove not-needed semicolons from code snippets (#18589)
This commit is contained in:
parent
6a65a43e9a
commit
05471df8bb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue