File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
132132await frame.getByText('Hello World').click() // ✅
133- await frame.click() // ❌ Not available
133+ await frame.click() // ❌ 不可用
134134` ` `
135135
136136::: danger IMPORTANT
You can’t perform that action at this time.
0 commit comments