1
0

WDKeys.pm 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package Selenium::Remote::WDKeys;
  2. use strict;
  3. use warnings;
  4. use base 'Exporter';
  5. # http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/:id/value
  6. use constant KEYS => {
  7. 'null' => "\N{U+E000}",
  8. 'cancel' => "\N{U+E001}",
  9. 'help' => "\N{U+E002}",
  10. 'backspace' => "\N{U+E003}",
  11. 'tab' => "\N{U+E004}",
  12. 'clear' => "\N{U+E005}",
  13. 'return' => "\N{U+E006}",
  14. 'enter' => "\N{U+E007}",
  15. 'shift' => "\N{U+E008}",
  16. 'control' => "\N{U+E009}",
  17. 'alt' => "\N{U+E00A}",
  18. 'pause' => "\N{U+E00B}",
  19. 'escape' => "\N{U+E00C}",
  20. 'space' => "\N{U+E00D}",
  21. 'page_up' => "\N{U+E00E}",
  22. 'page_down' => "\N{U+E00f}",
  23. 'end' => "\N{U+E010}",
  24. 'home' => "\N{U+E011}",
  25. 'left_arrow' => "\N{U+E012}",
  26. 'up_arrow' => "\N{U+E013}",
  27. 'right_arrow' => "\N{U+E014}",
  28. 'down_arrow' => "\N{U+E015}",
  29. 'insert' => "\N{U+E016}",
  30. 'delete' => "\N{U+E017}",
  31. 'semicolon' => "\N{U+E018}",
  32. 'equals' => "\N{U+E019}",
  33. 'numpad_0' => "\N{U+E01A}",
  34. 'numpad_1' => "\N{U+E01B}",
  35. 'numpad_2' => "\N{U+E01C}",
  36. 'numpad_3' => "\N{U+E01D}",
  37. 'numpad_4' => "\N{U+E01E}",
  38. 'numpad_5' => "\N{U+E01f}",
  39. 'numpad_6' => "\N{U+E020}",
  40. 'numpad_7' => "\N{U+E021}",
  41. 'numpad_8' => "\N{U+E022}",
  42. 'numpad_9' => "\N{U+E023}",
  43. 'multiply' => "\N{U+E024}",
  44. 'add' => "\N{U+E025}",
  45. 'separator' => "\N{U+E026}",
  46. 'subtract' => "\N{U+E027}",
  47. 'decimal' => "\N{U+E028}",
  48. 'divide' => "\N{U+E029}",
  49. 'f1' => "\N{U+E031}",
  50. 'f2' => "\N{U+E032}",
  51. 'f3' => "\N{U+E033}",
  52. 'f4' => "\N{U+E034}",
  53. 'f5' => "\N{U+E035}",
  54. 'f6' => "\N{U+E036}",
  55. 'f7' => "\N{U+E037}",
  56. 'f8' => "\N{U+E038}",
  57. 'f9' => "\N{U+E039}",
  58. 'f10' => "\N{U+E03A}",
  59. 'f11' => "\N{U+E03B}",
  60. 'f12' => "\N{U+E03C}",
  61. 'command_meta' => "\N{U+E03D}",
  62. };
  63. our @EXPORT = ('KEYS');
  64. 1;