has_x_path Method
Determines whether a specific element exists in the document.
Syntax
def has_x_path(x_path: str) -> bool: ...
Remarks
This method determines whether a particular XPath exists within the document. This may be used to check if a path exists before setting it via x_path.
This method returns True if the xpath exists, False if not.
See x_path for details on the XPath syntax.