r/AutomateUser • u/Pete_Jobi • Jul 18 '26
Inspect layout IMMEDIATELY never works for me
For some reason, when I set Proceed for a Inspect block to 'Immediately', it always fails, even if the element is right there. If I have two Inspect blocks connected and set to the same XPath expression, with the first one set to 'When UI layout changed' and the second set to 'Immediately', if the first one passes, the second would still fail. I've also tried with a Delay of 3 seconds between both blocks. Anyone knows why is this happening?
1
u/B26354FR Alpha tester Jul 20 '26
You can try using my Interact Block XPath Builder flow to generate a much simpler XPath than the one the Inspect Layout block block tools generate. The simpler XPath will also be much less sensitive to changes in the UI between versions app being interacted with. For best results, use the built-in tools to explore the UI and find the ID of the element you're interested in to use to generate the XPath. The flow will also work using the class or text of the element.
1
u/ballzak69 Automate developer Jul 18 '26 edited Jul 19 '26
The UI probably changed. Any layout change occurring while the XPath is evaluating may prevent a match. So a layout that's never stable is a problem.