There are many key components that one needs to remember while designing a good automation framework. The Wrapper Layer is one of the important components that we need to consider while designing our framework.
The wrapper layer is responsible for directly interacting with the imported library and incorporating our project-specific customization on top of it to make it fit for use. It acts as an abstraction layer that caters to all the project-specific requirements.
The benefits of using Wrapper Layer are:
- Low on Maintenance.
- Increases Code Reusability.
- Reduces lines of code.
- Single Point Change (SPC principle) to incorporate code changes.