Element.get_selector#

Element.get_selector() str[source]#

Gets the CSS selector of an element.

Returns:

  • str

  • None – If the element is not part of a page.