The reason why sendKeys uses CharSequence is because that's the same
process used to send all key presses. For example:
element.sendKeys("Cheese", Keys.DOWN);
Will simulate the user typing "Cheese" and then hitting the down arrow
on the keyboard.
Those keys that are hard to represent normally are (or will be)
encapsulated in the "Keys"[1] class. We should also provide the
ability to do chording at some point, though that's pretty far down
the list of priorities.
I've not really used BeanShell or Jython, but the signature for
"sendKeys" takes an array of CharSequences (it's declared using the
varargs Java 5 syntax) Perhaps passing in an array of strings might
work?
Regards,
Simon