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

Method child

poco/proxy.py:121–139  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 5

childrenMethod · 0.95
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80

Calls 2

build_queryFunction · 0.90
UIObjectProxyClass · 0.85

Tested by

no test coverage detected