Element.get_unique_selector#

Element.get_unique_selector()[source]#

Gets the unique CSS selector of an element.

Returns:

  • str

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