Java Abstract
Java Abstract
---------------
Abstraction is the process of hiding implementation details and showing only
functionality to the user. Abstraction in Java can be achieved using
- Abstract class
- Interface
I have created my BasePage class as abstract in Page Object Model and all the page
classes extend the BasePage class
Example:
public abstract class BasePage{
WebDriver driver;
}
Login Page - LoginPage.java
Example:
public abstract class BasePage {