Select the direct child(ren) from the UI element(s) given by the query expression, see ``QueryCondition`` for more details about the selectors. Args: name: query expression of attribute "name", i.e. the UI elements with ``name`` name will be selected
(self, name=None, **attrs)
| 119 | self._focus = None |
| 120 | |
| 121 | def child(self, name=None, **attrs): |
| 122 | """ |
| 123 | Select the direct child(ren) from the UI element(s) given by the query expression, see ``QueryCondition`` for |
| 124 | more details about the selectors. |
| 125 | |
| 126 | Args: |
| 127 | name: query expression of attribute "name", i.e. the UI elements with ``name`` name will be selected |
| 128 | attrs: other query expression except for the ``name`` |
| 129 | |
| 130 | Returns: |
| 131 | :py:class:`UIObjectProxy <poco.proxy.UIObjectProxy>`: a new UI proxy object representing the child(ren) of |
| 132 | current UI element(s) |
| 133 | """ |
| 134 | |
| 135 | sub_query = build_query(name, **attrs) |
| 136 | query = ('/', (self.query, sub_query)) |
| 137 | obj = UIObjectProxy(self.poco) |
| 138 | obj.query = query |
| 139 | return obj |
| 140 | |
| 141 | def children(self): |
| 142 | """ |