Find all elements matching the [CSS `selector`](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Selectors). Returns an `ElementCollection` of matching elements. ```python page.find("div") # All divs on the page page.find(".my-cl
(self, selector)
| 1443 | self.body.append(*items) |
| 1444 | |
| 1445 | def find(self, selector): |
| 1446 | """ |
| 1447 | Find all elements matching the |
| 1448 | [CSS `selector`](https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Selectors). |
| 1449 | |
| 1450 | Returns an `ElementCollection` of matching elements. |
| 1451 | |
| 1452 | ```python |
| 1453 | page.find("div") # All divs on the page |
| 1454 | page.find(".my-class") # All elements with class |
| 1455 | page.find("#my-id") # Element with id (as collection) |
| 1456 | page.find("div.my-class") # All divs with class |
| 1457 | ``` |
| 1458 | """ |
| 1459 | return _find_and_wrap(document, selector) |
| 1460 | |
| 1461 | |
| 1462 | page = Page() |