Clone this element and its underlying DOM element. Optionally assign a new `id` to the clone.
(self, clone_id=None)
| 666 | raise TypeError(f"Cannot append {type(item).__name__} to element.") |
| 667 | |
| 668 | def clone(self, clone_id=None): |
| 669 | """ |
| 670 | Clone this element and its underlying DOM element. |
| 671 | |
| 672 | Optionally assign a new `id` to the clone. |
| 673 | """ |
| 674 | clone = Element.wrap_dom_element(self._dom_element.cloneNode(True)) |
| 675 | clone.id = clone_id |
| 676 | return clone |
| 677 | |
| 678 | def find(self, selector): |
| 679 | """ |
nothing calls this directly
no test coverage detected