如何在 Playwright Python 中从 iframe 中提取文本? [重复]

问题描述 投票:0回答:1
python html dom playwright playwright-python
1个回答
0
投票

需要搜索

frame_locator.frame_locator(selector)

在我的例子中它看起来像这样:

page.frame_locator("iframe").locator(".sc-iAEawV > .sc-gikAfH > .sc-iJnaPW")
© www.soinside.com 2019 - 2024. All rights reserved.