atoms.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Copyright 2011-2014 Software Freedom Conservancy
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* AUTO GENERATED - DO NOT EDIT BY HAND */
  17. #ifndef WEBDRIVER_ATOMS_H
  18. #define WEBDRIVER_ATOMS_H
  19. #include <string> // For std::(w)string.
  20. namespace webdriver {
  21. namespace atoms {
  22. extern const char* const CLEAR[];
  23. extern const char* const CLEAR_LOCAL_STORAGE[];
  24. extern const char* const CLEAR_SESSION_STORAGE[];
  25. extern const char* const CLICK[];
  26. extern const char* const EXECUTE_ASYNC_SCRIPT[];
  27. extern const char* const EXECUTE_SCRIPT[];
  28. extern const char* const EXECUTE_SQL[];
  29. extern const char* const FIND_ELEMENT[];
  30. extern const char* const FIND_ELEMENTS[];
  31. extern const char* const GET_APPCACHE_STATUS[];
  32. extern const char* const GET_ATTRIBUTE[];
  33. extern const char* const GET_EFFECTIVE_STYLE[];
  34. extern const char* const GET_FIRST_CLIENT_RECT[];
  35. extern const char* const GET_LOCAL_STORAGE_ITEM[];
  36. extern const char* const GET_LOCAL_STORAGE_KEY[];
  37. extern const char* const GET_LOCAL_STORAGE_KEYS[];
  38. extern const char* const GET_LOCAL_STORAGE_SIZE[];
  39. extern const char* const GET_LOCATION[];
  40. extern const char* const GET_LOCATION_IN_VIEW[];
  41. extern const char* const GET_PAGE_ZOOM[];
  42. extern const char* const GET_SESSION_STORAGE_ITEM[];
  43. extern const char* const GET_SESSION_STORAGE_KEY[];
  44. extern const char* const GET_SESSION_STORAGE_KEYS[];
  45. extern const char* const GET_SESSION_STORAGE_SIZE[];
  46. extern const char* const GET_SIZE[];
  47. extern const char* const GET_TEXT[];
  48. extern const char* const IS_DISPLAYED[];
  49. extern const char* const IS_ELEMENT_CLICKABLE[];
  50. extern const char* const IS_ELEMENT_DISPLAYED[];
  51. extern const char* const IS_ENABLED[];
  52. extern const char* const IS_SELECTED[];
  53. extern const char* const REMOVE_LOCAL_STORAGE_ITEM[];
  54. extern const char* const REMOVE_SESSION_STORAGE_ITEM[];
  55. extern const char* const SET_LOCAL_STORAGE_ITEM[];
  56. extern const char* const SET_SESSION_STORAGE_ITEM[];
  57. extern const char* const SUBMIT[];
  58. static inline std::string asString(const char* const atom[]) {
  59. std::string source;
  60. for (int i = 0; atom[i] != NULL; i++) {
  61. source += atom[i];
  62. }
  63. return source;
  64. }
  65. } // namespace atoms
  66. } // namespace webdriver
  67. #endif // WEBDRIVER_ATOMS_H