Anyone knows how to handle element inside the dynamic iframe on Salesforce console app. iframe id/name and src is changing every time the page is refreshed. any solution or tips would be appreciated.
iframe element is in a fixed/deterministic position in the HTML heirarchy, you can build your XPath/CSS selector to suit that. For me personally, I’d use a combination of JS and CSS selectors. But if XPath is your thing, I can’t help.
Either way, post a screenshot of the HTML using the DevTools Inspector: