Skip to content

Commit 34d82b0

Browse files
authored
Merge pull request #803 from WuMingDao/patch-6
docs(browser/context.md): Add translate
2 parents 1d99289 + b3fa7b7 commit 34d82b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guide/browser/context.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ export const page: {
8686
*/
8787
elementLocator(element: Element): Locator
8888
/**
89-
* The iframe locator. This is a document locator that enters the iframe body
90-
* and works similarly to the `page` object.
91-
* **Warning:** At the moment, this is supported only by the `playwright` provider.
89+
* iframe 定位器。这是一个进入 iframe 主体的文档定位器
90+
* 其工作原理与 `page` 对象类似。
91+
* **Warning:** 目前,只有 `playwright` 提供程序支持该功能。
9292
*/
9393
frameLocator(iframeElement: Locator): FrameLocator
9494

@@ -130,7 +130,7 @@ const frame = page.frameLocator(
130130
)
131131
132132
await frame.getByText('Hello World').click() // ✅
133-
await frame.click() // ❌ Not available
133+
await frame.click() // ❌ 不可用
134134
```
135135

136136
::: danger IMPORTANT

0 commit comments

Comments
 (0)