I use Java language to automate the Salesforce lightning page. Here, the maintenance is very high on capturing the attributes for the web elements which is available on the lightning web page. Even though the Salesforce developers are not touching the code for a month or so the web elements attributes are changing quite often. Whatever it may be class, css or xpath. In a long run it is a hectic work on the maintenance part rather than actual scripting time.
1. What is the best way to automate the Salesforce lightning application through selenium?
2. Is there any best practices or any framework?
Kindly share your suggestions and ideas.