We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9603bce commit 7555745Copy full SHA for 7555745
uiautomator2/xpath.py
@@ -481,10 +481,10 @@ def wait(self, timeout=None) -> bool:
481
return False
482
time.sleep(0.2)
483
484
- def match(self) -> Optional["XMLElement"]:
+ def match(self) -> Optional["DeviceXMLElement"]:
485
"""
486
Returns:
487
- None or matched XMLElement
+ None or matched DeviceXMLElement
488
489
if self.exists:
490
return self.get_last_match()
@@ -545,7 +545,7 @@ def __getattr__(self, key: str):
545
546
if key.startswith("_"):
547
raise AttributeError("Invalid attr", key)
548
- if not hasattr(XMLElement, key):
+ if not hasattr(DeviceXMLElement, key):
549
550
el = self.get()
551
return getattr(el, key)
0 commit comments