Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get(self):
"""
Get first matched element
Returns:
XMLElement
Raises:
XPathElementNotFoundError
"""
if not self.wait(self._global_timeout):
raise XPathElementNotFoundError(self._xpath_list)
return self.get_last_match()