Handle non-standard leading whitespace on V8 stack frames (occurs when users
have defined Error.prepareStackTrace).

Also, do not format stack trace if every frame is an unrecognized format.

Fixes issue 7994.
Permit the target browser to be an empty string.

Some driver configurations do not check the browser string (appium?),
but we still want to require it be set to something since it's part of
the wire protocol.

Fixes issue 8000.
Change WebDriver.toWireValue to no longer use promise.fullyResolved, which
creates a bunch of unnecessary promises (one per key in a object/array). I will
be deprecating fullyResolved in a future commit.
Updating prebuilt Firefox native event libraries for Windows
Get rid of a few Ruby warnings

Fixes issue 8027
Fixes issue 8028
Escape characters commonly used in CSS selectors that can be used literally in element IDs.
This ensures that querySelectorAll('#' + id) works when id has special characters in it.
Fixes issue 8005

Signed-off-by: Seva Lotoshnikov <vlotoshnikov@gmail.com>
Modify test to expect that Chrome 39+ will not select a radio button when its handler prevents the default action. This behavior was changed in Blink a few weeks ago:
  http://src.chromium.org/viewvc/blink?view=revision&revision=182034

Remove obsolete code for Firefox versions 11 and lower, which are now unsupported.

Signed-off-by: Seva Lotoshnikov <vlotoshnikov@gmail.com>
If JsonParser.parse() fails to parse a string obtained from a reflective call to a toJson() method, assume it is a primitive string.

This is the case for, e.g., FirefoxProfile.toJson(), which returns a base64-encoded zip file. That string likely contains at least one '/', which the Gson parser rejects.

Signed-off-by: Seva Lotoshnikov <vlotoshnikov@gmail.com>
trim() HTTP response content because some drivers send back a response containing trailing null bytes, which the GSON parser does not like.

Signed-off-by: Seva Lotoshnikov <vlotoshnikov@gmail.com>
Remove obsolete ChromeOptions code.

Signed-off-by: Seva Lotoshnikov <vlotoshnikov@gmail.com>
Remove unused static import of Ignore.Driver.HTMLUNIT.

Signed-off-by: Seva Lotoshnikov <vlotoshnikov@gmail.com>
Adapt Marionette atoms so they can be used with Cu.import without designated scope
Log stacktrace

Adds more info on catch to be put into the log instead of just
console.  This will help debug issues when one has access to grid
hub log but no access to console.

Removes now superfluous t.printStackTrace().

Signed-off-by: Andreas Tolfsen <ato@mozilla.com>
Removing deprecated classes
Oops! Undo unwanted change that was included in the previous commit by mistake
Don't include selenium-server-standalone.jar into selenium-server.zip
Using JsonNull.INSTANCE instead of null
Using asMap as well as toMap to convert an object to Json
Moving proxy management stuff to the server, it is used in RC browser launchers only
Moving tests too