Skip to main content

Example 1: In Page Object Model

public class UserLogin 
{
    By login = By.name("btnLogin");
    WebDriver driver;
    
    public UserLogin(WebDriver driver)
    {
        this.driver = driver;
    }
}

About

Elix is a premium wordpress theme for portfolio, freelancer, design agencies and a wide range of other design institutions.