(page: Page, server: Server)
| 22 | |
| 23 | |
| 24 | def test_bounding_box(page: Page, server: Server) -> None: |
| 25 | page.set_viewport_size({"width": 500, "height": 500}) |
| 26 | page.goto(server.PREFIX + "/grid.html") |
| 27 | element_handle = page.query_selector(".box:nth-of-type(13)") |
| 28 | assert element_handle |
| 29 | box = element_handle.bounding_box() |
| 30 | assert box == {"x": 100, "y": 50, "width": 50, "height": 50} |
| 31 | |
| 32 | |
| 33 | def test_bounding_box_handle_nested_frames(page: Page, server: Server) -> None: |
nothing calls this directly
no test coverage detected