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

Method xpath_password_pseudo

pyquery/cssselectpatch.py:261–272  ·  view source on GitHub ↗

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

(self, xpath)

Source from the content-addressed store, hash-verified

259 return xpath
260
261 def xpath_password_pseudo(self, xpath):
262 """Matches all password input elements::
263
264 >>> from pyquery import PyQuery
265 >>> d = PyQuery('<div><input type="password"/></div>')
266 >>> d('input:password')
267 [<input>]
268
269 ..
270 """
271 xpath.add_condition("@type = 'password' and name(.) = 'input'")
272 return xpath
273
274 def xpath_submit_pseudo(self, xpath):
275 """Matches all submit input elements::

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected