public void login(NativeAppDriver driver,String email,String password,String signInButton,boolean isAndroid){
  driver.clearInputById(email);
  if (!(email.isEmpty())) {
    driver.clearInputById(email);
  }
  driver.clearInputById(password);
  if (!(password.isEmpty())) {
    driver.clearInputById(password);
  }
  driver.enterTextToElementById(email,emailId);
  if (isAndroid) {
    driver.hideKeyboard();
  }
  driver.enterTextToElementById(password,this.password);
  if (isAndroid) {
    driver.hideKeyboard();
  }
  driver.clickElementById(signInButton);
}

public void login ( NativeAppDriver driver , String email , String password , String signInButton , boolean isAndroid ) { driver . clearInputById ( email ) ; if ( ! ( email . isEmpty ( ) ) ) { driver . clearInputById ( email ) ; } driver . clearInputById ( password ) ; if ( ! ( password . isEmpty ( ) ) ) { driver . clearInputById ( password ) ; } driver . enterTextToElementById ( email , emailId ) ; if ( isAndroid ) { driver . hideKeyboard ( ) ; } driver . enterTextToElementById ( password , this . password ) ; if ( isAndroid ) { driver . hideKeyboard ( ) ; } driver . clickElementById ( signInButton ) ; }
login to the app
