Wrap all HTMLElement instances to _ExposedElement
(self, obj)
| 1457 | return func |
| 1458 | |
| 1459 | def expose_html_elements(self, obj): |
| 1460 | """ Wrap all HTMLElement instances to _ExposedElement """ |
| 1461 | def _expose(o): |
| 1462 | elem = _ExposedElement(self.lua, self.exceptions, self, o) |
| 1463 | self._objects_to_clear.add(elem) |
| 1464 | return self.element_wrapper._create(elem) |
| 1465 | |
| 1466 | return traverse_data( |
| 1467 | obj, |
| 1468 | lambda o: isinstance(o, HTMLElement), |
| 1469 | convert=_expose, |
| 1470 | ) |
| 1471 | |
| 1472 | def wait_tick(self, time=0.0): |
| 1473 | return _command_result_to_pyresult(self.wait(time)) |
no test coverage detected