Skip to content

Commit

Permalink
some refactoring and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Mar 18, 2013
1 parent 9b41fcb commit 18dcbcb
Show file tree
Hide file tree
Showing 79 changed files with 979 additions and 1,032 deletions.
20 changes: 20 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2011 Camilo Tapia <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions lib/assets/colors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* webdriverjs
* https://github.com/Camme/webdriverjs
*
* useful colors for bash
*
* Copyright (c) 2013 Camilo Tapia <[email protected]>
* Licensed under the MIT license.
*
* Contributors:
* Dan Jenkins <[email protected]>
* Christian Bromann <[email protected]>
*/

'use strict';

module.exports = {
black: "\x1b[0;30m",
dkgray: "\x1b[1;30m",
brick: "\x1b[0;31m",
red: "\x1b[1;31m",
green: "\x1b[0;32m",
lime: "\x1b[1;32m",
brown: "\x1b[0;33m",
yellow: "\x1b[1;33m",
navy: "\x1b[0;34m",
blue: "\x1b[1;34m",
violet: "\x1b[0;35m",
magenta: "\x1b[1;35m",
teal: "\x1b[0;36m",
cyan: "\x1b[1;36m",
ltgray: "\x1b[0;37m",
white: "\x1b[1;37m",
reset: "\x1b[0m"
};
41 changes: 41 additions & 0 deletions lib/assets/errorCodes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* webdriverjs
* https://github.com/Camme/webdriverjs
*
* error codes
*
* Copyright (c) 2013 Camilo Tapia <[email protected]>
* Licensed under the MIT license.
*
* Contributors:
* Dan Jenkins <[email protected]>
* Christian Bromann <[email protected]>
*/

'use strict';

module.exports = {
"-1": {id: "Unknown", message: "Remote end send an unknown status code."},
"0": {id: "Success", message: "The command executed successfully."},
"7": {id: "NoSuchElement", message: "An element could not be located on the page using the given search parameters."},
"8": {id: "NoSuchFrame", message: "A request to switch to a frame could not be satisfied because the frame could not be found."},
"9": {id: "UnknownCommand", message: "The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource."},
"10": {id: "StaleElementReference", message: "An element command failed because the referenced element is no longer attached to the DOM."},
"11": {id: "ElementNotVisible", message: "An element command could not be completed because the element is not visible on the page."},
"12": {id: "InvalidElementState", message: "An element command could not be completed because the element is in an invalid state (e.g. attempting to click a disabled element)."},
"13": {id: "UnknownError", message: "An unknown server-side error occurred while processing the command."},
"15": {id: "ElementIsNotSelectable", message: "An attempt was made to select an element that cannot be selected."},
"17": {id: "JavaScriptError", message: "An error occurred while executing user supplied JavaScript."},
"19": {id: "XPathLookupError", message: "An error occurred while searching for an element by XPath."},
"23": {id: "NoSuchWindow", message: "A request to switch to a different window could not be satisfied because the window could not be found."},
"24": {id: "InvalidCookieDomain", message: "An illegal attempt was made to set a cookie under a different domain than the current page."},
"25": {id: "UnableToSetCookie", message: "A request to set a cookie's value could not be satisfied."},
"26": {id: "UnexpectedAlertOpen", message: "A modal dialog was open, blocking this operation"},
"27": {id: "NoAlertOpenError", message: "An attempt was made to operate on a modal dialog when one was not open."},
"28": {id: "ScriptTimeout", message: "A script did not complete before its timeout expired."},
"29": {id: "InvalidElementCoordinates", message: "The coordinates provided to an interactions operation are invalid."},
"30": {id: "IMENotAvailable", message: "IME was not available."},
"31": {id : "IMEEngineActivationFailed", message: "An IME engine could not be started."},
"32": {id: "InvalidSelector", message: "Argument was an invalid selector (e.g. XPath/CSS)."},
"34": {id: "ElementNotScrollable", message: "Element cannot be scrolled into view."}
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 18dcbcb

Please sign in to comment.