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

SeleniumTestCase.waitForAjaxRequestsToComplete() not working when using Prototype

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4
    • 5.4
    • tapestry-core
    • 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

            hlship Howard Lewis Ship
            fscheffer Felix Scheffer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: