I am working on Salesforce Lightning UI test automation using Selenium. While locating the elements, need to frequently open the Developer Tools section of Chrome/Edge and search for the locators (Preparing Dynamic locators).
But, while Developer Tools is open, Salesforce Lightning UI freezes/hangs for couple of minute or so for every DOM traverse/search.
Salesforce Lightning application navigation or functionality works fine if the Developer Tools is off, also Selenium test execution works fine.
Steps to reproduce:
- Open Chrome/Edge Developer tools section (SHIFT+CTRL+I)
- On Salesforce lightening UI, right click on an element and Inspect
- Navigate to the elements sections in Developer Tools
- Expand the DOM structure for the element or again Inspect the same/different element.
- Do this for once/twice and you can see screen freezes for a while
Looking for any tips or suggestions on this behavior as its slowing down object identification and locators finding and entire automation process.
Note: I have raised the same issue at: https://developer.salesforce.com/forums/ForumsMain?id=9062I000000UekyQAC