Explain the core pillars of Object-Oriented Programming (OOP) and how they apply to building a scalable Selenium framework.