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
|
```python async
|
||||||
frameLocator = locator.frame_locator(":scope");
|
frameLocator = locator.frame_locator(":scope")
|
||||||
```
|
```
|
||||||
|
|
||||||
```python sync
|
```python sync
|
||||||
frameLocator = locator.frame_locator(":scope");
|
frameLocator = locator.frame_locator(":scope")
|
||||||
```
|
```
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
|
|
|
||||||
|
|
@ -212,13 +212,13 @@ page.waitForLoadState(LoadState.NETWORKIDLE); // This resolves after "networkidl
|
||||||
```
|
```
|
||||||
|
|
||||||
```python async
|
```python async
|
||||||
await page.locator("button").click(); # Click triggers navigation
|
await page.locator("button").click() # Click triggers navigation
|
||||||
await page.wait_for_load_state("networkidle"); # This waits for the "networkidle"
|
await page.wait_for_load_state("networkidle") # This waits for the "networkidle"
|
||||||
```
|
```
|
||||||
|
|
||||||
```python sync
|
```python sync
|
||||||
page.locator("button").click(); # Click triggers navigation
|
page.locator("button").click() # Click triggers navigation
|
||||||
page.wait_for_load_state("networkidle"); # This waits for the "networkidle"
|
page.wait_for_load_state("networkidle") # This waits for the "networkidle"
|
||||||
```
|
```
|
||||||
|
|
||||||
```csharp
|
```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"))
|
expect(page).to_have_title(re.compile("Playwright"))
|
||||||
|
|
||||||
# create a locator
|
# 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 an attribute "to be strictly equal" to the value.
|
||||||
expect(get_started).to_have_attribute("href", "/docs/intro")
|
expect(get_started).to_have_attribute("href", "/docs/intro")
|
||||||
|
|
@ -51,7 +51,7 @@ expect(page).to_have_title(re.compile("Playwright"))
|
||||||
```python
|
```python
|
||||||
from playwright.sync_api import expect
|
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")
|
expect(get_started).to_have_attribute("href", "/docs/installation")
|
||||||
get_started.click()
|
get_started.click()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue