MCPcopy Index your code
hub / github.com/AirtestProject/Poco / offspring

Method offspring

poco/proxy.py:152–170  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 4

using_freezingMethod · 0.80
no_using_freezingMethod · 0.80
test_set_textMethod · 0.80
test_clear_textMethod · 0.80

Calls 2

build_queryFunction · 0.90
UIObjectProxyClass · 0.85

Tested by 2

test_set_textMethod · 0.64
test_clear_textMethod · 0.64