Explain how you implemented OOP concepts like inheritance, polymorphism, and encapsulation in your test automation framework.