Aurum: add updateApplication for updateXpath accepted/tizen/8.0/unified/20240329.122754
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 25 Mar 2024 11:15:31 +0000 (20:15 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Thu, 28 Mar 2024 11:28:45 +0000 (20:28 +0900)
Change-Id: I00b3827eccfe33ad97fd85a7abd4ae19cb4853b9

libaurum/src/Comparer.cc
libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc

index a3707729e1702717430ff8ae77332bd3eaa4e47b..6f43318988280c07c952137771d9d48deb51709a 100644 (file)
@@ -63,6 +63,8 @@ void Comparer::findObjects(std::vector<std::shared_ptr<AccessibleNode>> &ret,
     }
 
     if (selector->mMatchXPath) {
+        root->updateApplication();
+        root->updatePid();
         std::string pkg = root->getPkg();
         int pid = root->getPid();
         auto XMLDoc = AccessibleWatcher::getInstance()->getXMLDoc({pkg, pid});
index b9071bd7c74ed00d2145439d218d92fb27afbe5d..29ff6dce2d230844172b2146c1249ca5c876a993 100644 (file)
@@ -263,6 +263,7 @@ void AtspiAccessibleNode::updateExtents()
 
 void AtspiAccessibleNode::updateXPath()
 {
+    updateApplication();
     updatePid();
     auto XMLDoc = AccessibleWatcher::getInstance()->getXMLDoc({mPkg, mPid});
     if (XMLDoc.get() == nullptr) return;