24-10-19 10:42 AM
06-01-20 10:03 PM
07-01-20 11:52 AM
07-01-20 03:54 PM
Thank you both David Flores and Dave Morris for your detailed answers.
David, I tried using 'Match Index" with reverse or not, and ancestor count, but unfortunately, in my case, it didn't make highligtht significantly faster.
Also, AA works but is definitevely slow, so not an option.
But UIA seems to work quite fine, not as fast as HTML (with PATH activated), but decent speed. Bad luck for me, I can't use UIA on customer site for now, because they still use 6.2 version.
Dave, your proposal is very interesting. It's not simple to implement, and also can be tricky to maintain, but at least process is fast.
I was thinking of two other method to solve path problem.
First one is using dynamic path attribute. So object is located with path, and if highlight fails, then trying to locate object with blank path (it's like not using path at all). So if path change, process still works, but slower. I guess that new path could be stored automatically for next time process is running.
Second one is by using JavaScript injection to locate object by ID, and then retrieving path still with JS. I don't know if it's really possible, still WIP for me 🙂
One again thanks guys for theses inputs.
Best regards,
Marc
10-01-20 12:19 PM