query_selector method

query_selector

Returns the first Element in document, which match selector

Returns

The matched node.

def query_selector(self, selector):
    ...
ParameterTypeDescription
selectorstrThe selector.

See Also