public void logout(NativeAppDriver driver,String header,String logoutButton,String emailTextBox,boolean isAndroid) throws InterruptedException {
  Thread.sleep(10000);
  driver.clickElementById(header);
  driver.clickElementById(logoutButton);
  driver.clearInputById(emailTextBox);
  if (isAndroid) {
    driver.hideKeyboard();
  }
}

public void logout ( NativeAppDriver driver , String header , String logoutButton , String emailTextBox , boolean isAndroid ) throws InterruptedException { Thread . sleep ( 10000 ) ; driver . clickElementById ( header ) ; driver . clickElementById ( logoutButton ) ; driver . clearInputById ( emailTextBox ) ; if ( isAndroid ) { driver . hideKeyboard ( ) ; } }
logout from the app
