MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / get_value_by_label

Method get_value_by_label

thirdparty/clientform/clientform.py:2227–2239  ·  view source on GitHub ↗

Return the value of the control as given by normalized labels.

(self)

Source from the content-addressed store, hash-verified

2225 o.selected = True
2226
2227 def get_value_by_label(self):
2228 """Return the value of the control as given by normalized labels."""
2229 res = []
2230 compat = self._form.backwards_compat
2231 for o in self.items:
2232 if (not o.disabled or compat) and o.selected:
2233 for l in o.get_labels():
2234 if l.text:
2235 res.append(l.text)
2236 break
2237 else:
2238 res.append(None)
2239 return res
2240
2241 def possible_items(self, by_label=False):
2242 """Deprecated: return the names or labels of all possible items.

Callers

nothing calls this directly

Calls 2

get_labelsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected