We have an automation in saleforce app. We do not use connectors/licences etc. We do use recorder captures in various windows. However we’ve experienced that after each Saleforce maintenance captures stop to work due to change in object properties. Do you also have the same experience? Any idea how to handle this, please?
Thanks
Page 1 / 1
The DOMXPath property is your best friend in these situations.
Relative Xpath: This is a shorter path that refers to an element you want to identify. A relative path starts with a // symbol. For example, the relative XPath for this topic would be //*/@id="cloud-using-recorder-action"]/div/pv1]
Additionally, you can nest them inside each other and use string, logical, and mathematical operators.
Honestly, when working with websites, I almost always disable all the properties in the recorder action except for the XPath. And it would seem like I’m not the only person who favors this approach, there is an extension in the chrome web store which features a hotkey to disable all the properties in a recorder action except for XPath: Automation Anywhere Hotkey - Chrome Web Store (google.com)
If you want to play around with XPath and experiment with dynamic HTML UI elements, you can use this website: https://rpachallenge.com/
I can’t recommend enough reading the w3schools.com guide to XPath:
In essence, this XPath expression is looking for a button with the title "Email" that is located within a div element with the class "clickableCardArea", and this div element is an ancestor of an anchor element containing the text "Phyllis Cotton".
Or if your requirement is something much simpler, such as pressing the first button on the list, adding the index to the expression would suffice:
//button"@title='Email']e1]
Once you're happy with your XPath expression, you can plug it in the DOMXPath attribute of your recorder action:
But wait, there's more! Did you notice the (x) button in the bottom right corner? Well…