query_selector method

query_selector

Returns the first Element in document, which match selector

Returns

The matched element

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

See Also