Skip to content

Commit

Permalink
feat(roll): roll to ToT Playwright (27-06-24) (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
playwrightmachine authored Jun 27, 2024
1 parent 290a6b7 commit 80e6a7f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 100 deletions.
10 changes: 3 additions & 7 deletions dotnet/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ await context.AddCookiesAsync(new[] { cookie1, cookie2 });

- `Url` [string]? *(optional)*

either url or domain / path are required. Optional.
Either url or domain / path are required. Optional.
- `Domain` [string]? *(optional)*

either url or domain / path are required Optional.
For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url or domain / path are required. Optional.
- `Path` [string]? *(optional)*

either url or domain / path are required Optional.
Either url or domain / path are required Optional.
- `Expires` [float]? *(optional)*

Unix time in seconds. Optional.
Expand All @@ -72,10 +72,6 @@ await context.AddCookiesAsync(new[] { cookie1, cookie2 });
- `SameSite` `enum SameSiteAttribute { Strict, Lax, None }?` *(optional)*

Optional.

Adds cookies to the browser context.

For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com".

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-add-cookies-return"/><a href="#browser-context-add-cookies-return" class="list-anchor">#</a>
Expand Down
18 changes: 0 additions & 18 deletions dotnet/docs/locators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -739,24 +739,6 @@ Locate an item by its text content and click it.
await page.GetByText("orange").ClickAsync();
```

<HTMLCard>
<div>
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
</div>

```html
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
```
</HTMLCard>

#### Filter by text

Use the [Locator.Filter()](/api/class-locator.mdx#locator-filter) to locate a specific item in a list.
Expand Down
10 changes: 3 additions & 7 deletions java/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ browserContext.addCookies(Arrays.asList(cookieObject1, cookieObject2));

- `setUrl` [String] *(optional)*

either url or domain / path are required. Optional.
Either url or domain / path are required. Optional.
- `setDomain` [String] *(optional)*

either url or domain / path are required Optional.
For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url or domain / path are required. Optional.
- `setPath` [String] *(optional)*

either url or domain / path are required Optional.
Either url or domain / path are required Optional.
- `setExpires` [double] *(optional)*

Unix time in seconds. Optional.
Expand All @@ -69,10 +69,6 @@ browserContext.addCookies(Arrays.asList(cookieObject1, cookieObject2));
- `setSameSite` `enum SameSiteAttribute { STRICT, LAX, NONE }` *(optional)*

Optional.

Adds cookies to the browser context.

For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com".

**Returns**
- [void]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-add-cookies-return"/><a href="#browser-context-add-cookies-return" class="list-anchor">#</a>
Expand Down
18 changes: 0 additions & 18 deletions java/docs/locators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -742,24 +742,6 @@ Locate an item by its text content and click it.
page.getByText("orange").click();
```

<HTMLCard>
<div>
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
</div>

```html
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
```
</HTMLCard>

#### Filter by text

Use the [Locator.filter()](/api/class-locator.mdx#locator-filter) to locate a specific item in a list.
Expand Down
10 changes: 3 additions & 7 deletions nodejs/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ await browserContext.addCookies([cookieObject1, cookieObject2]);

- `url` [string] *(optional)*

either url or domain / path are required. Optional.
Either url or domain / path are required. Optional.
- `domain` [string] *(optional)*

either url or domain / path are required Optional.
For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url or domain / path are required. Optional.
- `path` [string] *(optional)*

either url or domain / path are required Optional.
Either url or domain / path are required Optional.
- `expires` [number] *(optional)*

Unix time in seconds. Optional.
Expand All @@ -70,10 +70,6 @@ await browserContext.addCookies([cookieObject1, cookieObject2]);
- `sameSite` "Strict" | "Lax" | "None" *(optional)*

Optional.

Adds cookies to the browser context.

For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com".

**Returns**
- [Promise]&lt;[void]&gt;<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-add-cookies-return"/><a href="#browser-context-add-cookies-return" class="list-anchor">#</a>
Expand Down
18 changes: 0 additions & 18 deletions nodejs/docs/locators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -722,24 +722,6 @@ Locate an item by its text content and click it.
await page.getByText('orange').click();
```

<HTMLCard>
<div>
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
</div>

```html
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
```
</HTMLCard>

#### Filter by text

Use the [locator.filter()](/api/class-locator.mdx#locator-filter) to locate a specific item in a list.
Expand Down
10 changes: 3 additions & 7 deletions python/docs/api/class-browsercontext.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ await browser_context.add_cookies([cookie_object1, cookie_object2])

- `url` [str] *(optional)*

either url or domain / path are required. Optional.
Either url or domain / path are required. Optional.
- `domain` [str] *(optional)*

either url or domain / path are required Optional.
For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url or domain / path are required. Optional.
- `path` [str] *(optional)*

either url or domain / path are required Optional.
Either url or domain / path are required Optional.
- `expires` [float] *(optional)*

Unix time in seconds. Optional.
Expand All @@ -116,10 +116,6 @@ await browser_context.add_cookies([cookie_object1, cookie_object2])
- `sameSite` "Strict" | "Lax" | "None" *(optional)*

Optional.

Adds cookies to the browser context.

For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com".

**Returns**
- [NoneType]<a aria-hidden="true" tabIndex="-1" class="list-anchor-link" id="browser-context-add-cookies-return"/><a href="#browser-context-add-cookies-return" class="list-anchor">#</a>
Expand Down
18 changes: 0 additions & 18 deletions python/docs/locators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1476,24 +1476,6 @@ await page.get_by_text("orange").click()
</TabItem>
</Tabs>

<HTMLCard>
<div>
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
</div>

```html
<ul>
<li>apple</li>
<li>banana</li>
<li>orange</li>
</ul>
```
</HTMLCard>

#### Filter by text

Use the [locator.filter()](/api/class-locator.mdx#locator-filter) to locate a specific item in a list.
Expand Down

0 comments on commit 80e6a7f

Please sign in to comment.