review feedback

This commit is contained in:
Max Schmitt 2024-04-09 09:03:13 +02:00
parent 956cfadc60
commit 9e3cca445d
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ toc_max_heading_level: 2
await Context.ClearCookiesAsync(new() { Domain = "my-origin.com" });
```
- New method [`method: Locator.contentFrame`] converts a [Locator] object to a [FrameLocator]. This can be useful when you have a [Locator] object obtained somewhere, and later on would like to interact with the content inside the frame.
- New property [`method: Locator.contentFrame`] converts a [Locator] object to a [FrameLocator]. This can be useful when you have a [Locator] object obtained somewhere, and later on would like to interact with the content inside the frame.
```csharp
var locator = Page.Locator("iframe[name='embedded']");
@ -28,7 +28,7 @@ toc_max_heading_level: 2
await frameLocator.GetByRole(AriaRole.Button).ClickAsync();
```
- New method [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
- New property [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
```csharp
var frameLocator = page.FrameLocator("iframe[name='embedded']");

View file

@ -31,9 +31,9 @@ toc_max_heading_level: 2
- New method [`method: FrameLocator.owner`] converts a [FrameLocator] object to a [Locator]. This can be useful when you have a [FrameLocator] object obtained somewhere, and later on would like to interact with the `iframe` element.
```java
FrameLocator frameLocator = page.frameLocator("iframe[name='embedded']")
FrameLocator frameLocator = page.frameLocator("iframe[name='embedded']");
// ...
Locator locator = frameLocator.owner()
Locator locator = frameLocator.owner();
assertThat(locator).isVisible();
```