I've been writing a test using Selenium WebDriverJS, and now I need to simulate pressing a key on the keyboard. Is it possible to do this with Selenium WebDriverJS? If so, how can it be done?
In Java, we achieve this as follows:
driver.findElement(Locator).sendKeys(Keys.ARROW_DOWN);
Thank you.