MCPcopy Create free account
hub / github.com/gawel/pyquery / xpath_submit_pseudo

Method xpath_submit_pseudo

pyquery/cssselectpatch.py:274–285  ·  view source on GitHub ↗

Matches all submit input elements:: >>> from pyquery import PyQuery >>> d = PyQuery(' ') >>> d('input:submit') [ ] ..

(self, xpath)

Source from the content-addressed store, hash-verified

272 return xpath
273
274 def xpath_submit_pseudo(self, xpath):
275 """Matches all submit input elements::
276
277 >>> from pyquery import PyQuery
278 >>> d = PyQuery('<div><input type="submit"/></div>')
279 >>> d('input:submit')
280 [<input>]
281
282 ..
283 """
284 xpath.add_condition("@type = 'submit' and name(.) = 'input'")
285 return xpath
286
287 def xpath_hidden_pseudo(self, xpath):
288 """Matches all hidden input elements::

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected