Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69149

Invalid xpath in grade tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.12, 3.7.6, 3.8.3, 3.9
    • Fix Version/s: 3.5.13, 3.7.7, 3.8.4, 3.9.1
    • Component/s: Gradebook
    • Labels:

      Description

      No idea why this doesn't fail on chrome or old firefox but it fails with newer versions of firefox.

      We have an invalid xpath!

      //input[@class='idnumber'][parent::li[@class='item'][text()='grade item 1'] | parent::li[@class='categoryitem' | @class='courseitem']/parent::ul/parent::li[starts-with(text(),'grade item 1')]]
      

      The following part is invalid:

      li[@class='categoryitem' | @class='courseitem']
      

      You can't use a pipe for an attribute alternative.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Eloy Lafuente (stronk7)
              Integrator:
              Jake Dallimore
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jul/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 15 minutes
                  1h 15m