chromium/third_party/blink/web_tests/external/wpt/html/interaction/focus/focusgroup/tentative/resources/focusgroup-utils.js

/*
  Methods for testing the focusgroup feature.
*/

// https://w3c.github.io/webdriver/#keyboard-actions
const kArrowLeft = '\uE012';
const kArrowUp = '\uE013';
const kArrowRight = '\uE014';
const kArrowDown = '\uE015';

// Set the focus on target and send the arrow key press event from it.
function focusAndKeyPress(target, key) {
  target.focus();
  return test_driver.send_keys(target, key);
}