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

Invalid xpath in grade tests

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.12, 3.7.6, 3.8.3, 3.9
    • 3.5.13, 3.7.7, 3.8.4, 3.9.1
    • Gradebook

    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

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jake Dallimore Jake Dallimore
              CiBoT CiBoT
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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