Inspect Layout/XPath not working with Chrome WebView

40 views
Skip to first unread message

Vishvnath Kachi

unread,
Jul 14, 2026, 1:12:17 PM (10 days ago) Jul 14
to Automate for Android
I'm using Automate by LlamaLab with Zoho CRM running in Chrome (Android WebView). My flow refreshes the page repeatedly and needs to detect when "No Deals found" changes to a deal being available. Inspect Layout and XPath always return false for WebView elements, even though the XML contains the text. I want to avoid taking screenshots and running OCR every loop because it's too slow. Is there any Automate block or recommended method to reliably detect WebView content or page changes?

Henrik "The Developer" Lindqvist

unread,
Jul 15, 2026, 9:44:55 AM (9 days ago) Jul 15
to Automate for Android
If the layout XML, as produced by the "Inspect user interface" button, includes the UI element then the XPath should be to selected it. But browsers usually dont' even produce an proper XML since they do they own rendering/drawing, bypassing the Android way, without including accessibility information necessary. As the documentation say, "Targeted actions which are performed on a specific Android UI element, as selected by evaluating the XPath expression, custom graphics as used in browsers and games may not work."

Vishvnath Kachi

unread,
Jul 15, 2026, 12:47:03 PM (9 days ago) Jul 15
to Automate for Android
Thank you. Since XPath and Inspect Layout can't reliably access Chrome WebView, what would you recommend as the fastest alternative? Would OCR/Text Recognition, image detection, or another Automate block be the best approach for detecting when the page changes from "No Deals found" to a deal being available?

Henrik "The Developer" Lindqvist

unread,
Jul 15, 2026, 2:04:30 PM (9 days ago) Jul 15
to Automate for Android
If possible, use the HTTP request block to access the web page HTML directly.
Otherwise, using screenshots and OCR is the only alternative.
Reply all
Reply to author
Forward
0 new messages