While filling out a form the test needs to tab out in order to go to next field.
The error I get is:
InvalidArgumentError: Not a modifier key
The keyDown
action is only for modifier keys :
key.CONTROL
key.SHIFT
key.ALT
key.COMMAND
To send the tab key, use .sendKeys
:
var key = require('selenium-webdriver').Key;
var actionSequence = require('selenium-webdriver').ActionSequence;
new actionSequence(driver).keyDown(key.CONTROL).sendKeys(key.TAB).perform().then(function(){
console.log("Done selection?");
});