Many Selenium WebDriver experts commonly employ static class variables, and WebDriver is widely used as a static reference variable.
Selenium test automation does not require a static driver or static methods. They cause more difficulties than they solve. Breaking encapsulation, making things changeable, and encouraging procedural code are examples.