Select the offsprings including the direct child(ren) from the UI element(s) given by the query expression, see ``QueryCondition`` for more details about selectors. Args: name: query expression of attribute "name", i.e. the UI elements with ``name`` name will be
(self, name=None, **attrs)
| 150 | return self.child() |
| 151 | |
| 152 | def offspring(self, name=None, **attrs): |
| 153 | """ |
| 154 | Select the offsprings including the direct child(ren) from the UI element(s) given by the query expression, |
| 155 | see ``QueryCondition`` for more details about selectors. |
| 156 | |
| 157 | Args: |
| 158 | name: query expression of attribute "name", i.e. the UI elements with ``name`` name will be selected |
| 159 | attrs: other query expression except for the ``name`` |
| 160 | |
| 161 | Returns: |
| 162 | :py:class:`UIObjectProxy <poco.proxy.UIObjectProxy>`: a new UI proxy object representing the child(ren) of |
| 163 | current UI element(s) |
| 164 | """ |
| 165 | |
| 166 | sub_query = build_query(name, **attrs) |
| 167 | query = ('>', (self.query, sub_query)) |
| 168 | obj = UIObjectProxy(self.poco) |
| 169 | obj.query = query |
| 170 | return obj |
| 171 | |
| 172 | def sibling(self, name=None, **attrs): |
| 173 | """ |