-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Version
1.54.0
Steps to reproduce
import asyncio
from playwright import async_api
async def main():
async with async_api.async_playwright() as playwright:
browser = await playwright.chromium.launch(headless=False,executable_path=r"D:\xxx\chrome\137\chrome-win\chrome.exe")
context = await browser.new_context()
page = await context.new_page()
await page.goto("https://www.bejson.com/jshtml_format/")
await asyncio.sleep(100)
frame = page.frame_locator("#aswift_0")
if __name__ == '__main__':
asyncio.run(main())
Expected behavior
It can locate into correct iframe.Then I can evaluate in this frame.

Actual behavior
But it located mian frame:

Additional context
No response
Environment
- Operating System: [Ubuntu 22.04]
- CPU: [arm64]
- Browser: [All, Chromium, Firefox, WebKit]
- Python Version: [3.12]
- Other info:
Metadata
Metadata
Assignees
Labels
No labels