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>