locator.click: Target closed
=========================== logs ===========================
waiting for frame "#sandbox-test-db-container"
selector resolved to visible <iframe lang="en" scrolling="yes" title="Content body" i…></iframe>
waiting for selector "#sandbox-test-db-container >> control=enter-frame >> g:nth-child(273) > circle"
selector resolved to visible <circle r="7" cx="209.86857670732482" cy="106.8619269650…></circle>
attempting click action
waiting for element to be visible, enabled and stable
element is not stable - waiting...
element was detached from the DOM, retrying
waiting for frame "#sandbox-test-db-container"
selector resolved to visible <iframe lang="en" scrolling="yes" title="Content body" i…></iframe>
waiting for selector "#sandbox-test-db-container >> control=enter-frame >> g:nth-child(273) > circle"
============================================================
如果我在调试模式下运行,将调试点放在上面。它运行成功。
我试图点击一个滑块(开关)来渲染d3地图,然后点击d3地图中的一个圆。
测试代码段
this.page.frameLocator('#sandbox-test-db-container').locator('.oui-react-slider').click(),
this.page.frameLocator('#sandbox-test-db-container').locator('g:nth-child(273) > circle').click(),
this.page.frameLocator('#sandbox-test-db-container').locator('[aria-label="Select all"]').click()
文章源自玩技e族-https://www.playezu.com/180741.html文章源自玩技e族-https://www.playezu.com/180741.html