Here is my code for client registration page.

```
package Pages;
import org.apache.bcel.generic.Select;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

public class ClientPage 
{

@FindBy(linkText="Admin")
WebElement admin;
@FindBy(linkText="Clients")
WebElement clients;
@FindBy(xpath="//*[@id='search-container']/a/i")
WebElement search;
@FindBy(id="name")
WebElement name;

@FindBy(name="address")
WebElement address;

@FindBy(id="status")
WebElement select;

//constructor
public ClientPage(WebDriver driver)
{
    //initialize elements
      PageFactory.initElements(driver,this);

}
public void clickOnadmin()
{
    admin.click();
}
public void clickonclient()
{
    clients.click();
}

public void clickonsearch()
{
    search.click();
}
public void set_clientname(String na)
{
    name.clear();
    name.sendKeys(na);

}

public void set_address(String add)
{
    address.clear();
    address.sendKeys("add");
}
public void select_list()
{
     Select stat=new Select(driver.findElement(By.id("status")));
     stat.selectByVisibleText("active");
}

}

```

Here is the test page.

```
package Test;
import org.testng.annotations.Test;
import Pages.ClientPage;
import Pages.HomePage;
import org.testng.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;

public class ClientTest
{
WebDriver driver;
@BeforeTest
public void setup()
{
    System.setProperty("webdriver.firefox.marionette","pathToGeckodriver");
    driver=new FirefoxDriver();
    driver.manage().window().maximize();
    driver.get("http://54.68.159.204/qmsadm");
}
@Test
public void verify()
{
    HomePage home=new HomePage(driver);
    home.set_username("");
    home.set_password("");
    home.click_button();
    Assert.assertTrue(driver.getPageSource().contains("Hello Sony George"));
}
@Test(priority=1)
public void verify1()
{
    ClientPage client=new ClientPage(driver);
    client.clickOnadmin();
    client.clickonclient();
    Assert.assertTrue(driver.getPageSource().contains("Hello Sony George"));
}
@Test(priority=2)
public void verify2()
{
    ClientPage client=new ClientPage(driver);
    client.clickOnadmin();
    client.clickonclient();
    client.clickonsearch();
    client.set_clientname("Ajmal police");
    client.set_address("dubai");
    }

}

```