Code coverage report for lib/jsonwire-errors.js

Statements: 100% (2 / 2)      Branches: 100% (0 / 0)      Functions: 100% (0 / 0)      Lines: 100% (2 / 2)     

All files » lib/ » jsonwire-errors.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 931                                                                                                                                                                                     1  
var JSONWIRE_ERRORS = [
{
  status: 0,
  summary:'Success', 
  detail:'The command executed successfully.'}
, {
  status: 7,
  summary:'NoSuchElement', 
  detail:'An element could not be located on the page using the given search parameters.'}
, {
  status: 8,
  summary:'NoSuchFrame', 
  detail:'A request to switch to a frame could not be satisfied because the frame could not be found.'}
, {
  status: 9,
  summary:'UnknownCommand', 
  detail:'The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.'}
, {
  status: 10,
  summary:'StaleElementReference', 
  detail:'An element command failed because the referenced element is no longer attached to the DOM.'}
, {
  status: 11,
  summary:'ElementNotVisible', 
  detail:'An element command could not be completed because the element is not visible on the page.'}
, {
  status: 12,
  summary:'InvalidElementState', 
  detail:'An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element).'}
, {
  status: 13,
  summary:'UnknownError', 
  detail:'An unknown server-side error occurred while processing the command.'}
, {
  status: 15,
  summary:'ElementIsNotSelectable', 
  detail:'An attempt was made to select an element that cannot be selected.'}
, {
  status: 17,
  summary:'JavaScriptError', 
  detail:'An error occurred while executing user supplied JavaScript.'}
, {
  status: 19,
  summary:'XPathLookupError', 
  detail:'An error occurred while searching for an element by XPath.'}
, {
  status: 21,
  summary:'Timeout', 
  detail:'An operation did not complete before its timeout expired.'}
, {
  status: 23,
  summary:'NoSuchWindow', 
  detail:'A request to switch to a different window could not be satisfied because the window could not be found.'}
, {
  status: 24,
  summary:'InvalidCookieDomain', 
  detail:'An illegal attempt was made to set a cookie under a different domain than the current page.'}
, {
  status: 25,
  summary:'UnableToSetCookie', 
  detail:'A request to set a cookie\'s value could not be satisfied.'}
, {
  status: 26,
  summary:'UnexpectedAlertOpen', 
  detail:'A modal dialog was open, blocking this operation'}
, {
  status: 27,
  summary:'NoAlertOpenError', 
  detail:'An attempt was made to operate on a modal dialog when one was not open.'}
, {
  status: 28,
  summary:'ScriptTimeout', 
  detail:'A script did not complete before its timeout expired.'}
, {
  status: 29,
  summary:'InvalidElementCoordinates', 
  detail:'The coordinates provided to an interactions operation are invalid.'}
, {
  status: 30,
  summary:'IMENotAvailable', 
  detail:'IME was not available.'}
, {
  status: 31,
  summary:'IMEEngineActivationFailed', 
  detail:'An IME engine could not be started.'}
, {
  status: 32,
  summary:'InvalidSelector', 
  detail:'Argument was an invalid selector (e.g. XPath/CSS).'}
];
 
module.exports = JSONWIRE_ERRORS;