I am trying to use Headless testing using HTMLUnitDriver library.
My code with keyboard keys events working fine with real browser but same code is not working when using HTMLUnitDriver headless testing.
I tried below option-
Actions action = new Actions(driver); action.sendKeys(Keys.ENTER).build().perform();
// using Keyboard
Keyboard keyboard = ((HasInputDevices) driver).getKeyboard(); keyboard.pressKey(Keys.ENTER);
// using sendkeys
With all the above code I not getting any error but also not performing any key event.