Thanks for the respond … yea i ininialized the driver
this is the entire code used for the above action
private WebDriver driver;
//TouchAction action = new TouchAction(this.driver);*/ @FindBy(how = How.ID, using =“com.wallet.client:id/pin_code_button_4”)
private WebElement number4;
@FindBy(how = How.ID, using ="com.wallet.client:id/pin_code_button_3")
private WebElement number3;
@FindBy(how = How.ID, using ="com.wallet.client:id/pin_code_button_2")
private WebElement number2;
@FindBy(how = How.ID, using ="com.wallet.client:id/pin_code_button_1")
private WebElement number1;
public UnlockKeypad(WebDriver driver)
{
this.driver = driver;
}
public void Unlock()
{
number4.click();