Sendkeys not working


#1

Guys, I am new to this stuff and I can’t get the basics working everything I try fails can you please help me get past step one just need to put a pin in and click on the login button android Samsung numeric keypad

capabilities.setCapability(“deviceName”, “Android Device”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability (MobileCapabilityType.CLEAR_SYSTEM_FILES, true);
//capabilities.setCapability(“unicodeKeyboard”, “true”);
//capabilities.setCapability(“resetKeyboard”, “true”);
//capabilities.setCapability (“noReset”,“false”);
capabilities.setCapability(“app”, app.getAbsolutePath());
driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);
// @depreciated
// default void pressKeyCode(int key) {
// CommandExecutionHelper.execute(this, pressKeyCodeCommand(key));
// }
//Performing actions : Login Screen
// ((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.KEYCODE_1);
// ((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.KEYCODE_2);
// ((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.KEYCODE_3);
// ((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.KEYCODE_4);
driver.findElement(By.id(“com.volker.android.volkerforms:id/pin1”)).sendKeys(“4321”);

    driver.pressKeyCode(10); //Deprecated tried everythinghttps://discuss.appium.io/c/
	//numinp.sendKeys("1234");

    driver.findElement(By.id("com.volker.android.volkerforms:id/login")).click();