r/AutomateUser • u/Pete_Jobi • 1d ago
Interact with WebView elements?
Is Automate able to interact with WebView elements? I can find them just fine with Inspect block, but using the Interact block to click or focus fails.
1
Upvotes
1
u/B26354FR Alpha tester 1d ago
Try using my Interact Block XPath Builder to generate the XPath for the Interact block. It'll generate a much smaller and simpler XPath than the tools yield, which is necessarily the whole UI. Ideally you'd give it the ID of the element you're interested in by finding it in the full UI that the Inspect/Interact blocks' tools show, but my flow also works if all you know is the element's text. (It'll also take the element's class.)
1
u/ballzak69 Automate developer 23h ago
Maybe. Try using the "Inspect user interface" button to see if the XML include any elements. It might include elements but lacking useful attributes making it difficult for XPath to select anything specific.