Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2399

SeleniumTestCase.waitForAjaxRequestsToComplete() not working when using Prototype

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      waitForAjaxRequestsToComplete() waits until <body> has an attribute

      data-ajax-active=false
      

      which will NEVER be the case when Prototype is being used.

      When an attribute's value is false, Prototype removes that attribute from the tag (instead of writing out the value).

      from prototype.js, line 2269:

      writeAttribute: function(element, name, value) {
            ...
            if (value === false || value === null)
              element.removeAttribute(name);
            else if (value === true)
              element.setAttribute(name, name);
            else element.setAttribute(name, value);
            ...
      }
      

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              fscheffer Felix Scheffer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: