Permalink
Commits on Jun 5, 2015
  1. Update NEWS

    jferris committed Jun 5, 2015
  2. Fix reset crash when replies are destroyed

    jferris committed Jun 5, 2015
    We attempted to track in-progress replies and abort them in 1.5.1.
    However, sometimes these replies are destroyed unexpectedly, so
    attempting to abort them raises errors.
    
    This commit tracks when replies are destroyed and removes them from the
    queue of in-progress replies.
Commits on May 22, 2015
  1. Support Ruby 2.2

    jferris committed May 22, 2015
    This adds Ruby 2.2 to Travis.
  2. Update NEWS

    jferris committed May 22, 2015
  3. Fix for missing select events

    mockdeep committed with jferris May 22, 2015
    This is a fix for an issue where select tags don't bubble the correct
    events when clicked. More discussion here:
    #763
  4. Deprecate methods on internal classes

    jferris committed May 22, 2015
    We currently expose some functionality through internal classes,
    particularly going through `driver.browser`. With this change,
    everything except the public Capybara API and a few extensions on our
    `Driver` class becomes deprecated.
Commits on May 15, 2015
  1. Update news

    jferris committed May 15, 2015
  2. Make caching behavior more like Selenium

    jferris committed May 15, 2015
    We disabled caching entirely, because it sometimes led to unexpected
    behavior in tests, and Qt 4.8 didn't behave the same as Qt 5.x.
    
    However, this introduced issues:
    
    * Selenium does perform caching, so capybara-webkit behaved differently
      when switching drivers
    * Without any caching, assets were sometimes requested twice for the
      same page
    
    This commit re-enables caching and attempts to improve the way we behave
    on cached pages so that testing is less unpredictable. It adds tests to
    ensure we continue to behave similarly to Selenium.
Commits on Apr 28, 2015
  1. Remove SocketDebugger and deprecate socket_class

    jferris committed Apr 28, 2015
    Because:
    
    * SocketDebugger is less useful than debug logging in the driver
    * SocketDebugger has been broken for several releases and is unused
    * The socket_class option was only used for injecting SocketDebugger
    
    This commit:
    
    * Removes the SocketDebugger class
    * Deprecates the socket_class option
Commits on Apr 27, 2015
  1. Fix news entry

    jferris committed Apr 27, 2015
Commits on Apr 24, 2015
  1. Update NEWS file

    jferris committed Apr 24, 2015
Commits on Apr 23, 2015
  1. Fix native alerts from Ajax requests

    jferris committed Apr 23, 2015
    If an Ajax request finished after a `reset` triggered an alert, a native
    alert pops up. Additionally, the next request to the driver after the
    native alert will crash the webkit process.
Commits on Apr 13, 2015
  1. Allow response header value to contain a colon

    rylwin committed with jferris Feb 8, 2015
    HTTP response header field values are allowed to contain separators
    (which includes the colon) as long as they appear within quotes
    (http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2). This
    commit enables `Browser#response_headers` to handle a field value that
    contains a colon followed by a space (i.e., ": ") without breaking.
Commits on Apr 10, 2015
  1. Warn when using Qt 4

    jferris committed Apr 10, 2015
    We plan on removing support for Qt 4 in the next major release. This
    allows us to give users a heads-up in the next minor release.
  2. Fix spec sleep race condition

    nritholtz committed with jferris Apr 9, 2015
    This spec was randomly failing because it would sometimes take longer
    than the fixed, 1-second sleep we had in place. This changes it to wait
    up to 3 seconds, without sleeping longer than it needs to.
  3. Add ability to allow all unknown hosts

    nritholtz committed with jferris Apr 9, 2015
    Adds `page.driver.allow_unknown_hosts`.
Commits on Apr 9, 2015
Commits on Mar 27, 2015
  1. Release capybara-webkit 1.5.0

    mhoran committed Mar 27, 2015
  2. Include the code that we need

    mike-burns committed with mhoran Mar 26, 2015
    - `cin` and `cout` require iostream.
    - `QT_VERSION` requires QtGlobal.
    - `QSocketNotifier` requires QSocketNotifier.
    - Unrelated to includes: let Qt figure out the spec.
    
    Found by Jeremy Evans on behalf of the OpenBSD project.
Commits on Mar 20, 2015
Commits on Mar 12, 2015
  1. Mention coaching

    jferris committed Mar 12, 2015
Commits on Mar 9, 2015
  1. Update links and credits in README

    jferris committed Mar 9, 2015
    * Link to contributing, license guides
    * Update credit section for newer thoughtbot references
Commits on Feb 16, 2015
  1. Disable web page and object memory cache

    mhoran committed Feb 16, 2015
    Pages and assets should not be retrieved from the cache. This leads to
    unexpected results in testing. Also, the raw content of cached objects
    and pages cannot be retrieved.
Commits on Jan 27, 2015
  1. Release capybara-webkit 1.4.1

    mhoran committed Jan 27, 2015
  2. Do not consider data URIs unknown

    mhoran committed Jan 27, 2015
Commits on Jan 26, 2015
  1. Document unknown URL handler in README

    mhoran committed Jan 26, 2015
    [ci skip]
  2. Clean up Travis before install script

    mhoran committed Jan 26, 2015
    Only install Qt 5 when building against Qt 5.
    
    Remove unnecessary explicit dependencies.
Commits on Jan 22, 2015
  1. Release capybara-webkit 1.4.0

    mhoran committed Jan 22, 2015
Commits on Jan 21, 2015
  1. Fix returning invisible text on a hidden page

    sandro committed Jan 20, 2015
    Commit 2f3832f introduced a bug wherein
    if the entire page has hidden content, the entire page text is returned
    as visible text. The bug was introduced to support SVG text handling.
    The svg element doesn't have an innerText property, but does have
    textContent property, so the patch was written to fallback on
    textContent. The thing is, innerText will return an empty string when
    there is no visible text on the screen, which is a falsey condition, so
    we fall back to textContent. Thankfully, calling innerText on an svg
    element returns undefined, so now we can confidently return the empty
    string when it exists before falling back to textContent.
    
    The patch could also be written as:
    
        return visible_text == undefined ? node.textContent : visible_text;
    
    (double equals should work fine in this case)
Commits on Jan 6, 2015
  1. Whitelist localhost on Driver#reset!

    mhoran committed Jan 6, 2015
    Fixes a regression due to "reset allowed/blocked URLs between specs"
    (4491ba8).
Commits on Dec 17, 2014
  1. Expose INCLUDEPATH and LIBS qmake variables

    cstrahan committed with jferris Dec 16, 2014
    This allows one to specify the include and lib paths for gl and zlib.
    
    Example:
    
        gem install capybara-webkit -- \
          --with-gl-dir=/nix/store/1sw1cyny213ih9dpdsq8h2kwqaqcm6vp-mesa-10.2.9 \
          --with-zlib-dir=/nix/store/cb649pfdf14335d07jcfmsik7a1rsgbf-zlib-1.2.8
    
    Fixes #695