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

Create Behat directive Then the field with xpath "FIELDXPATH_STRING" matches value "FIELD_VALUE_STRING"

    XMLWordPrintable

Details

    • MOODLE_29_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • wip-mdl-50940
    • Hide

      RUN:
      vendor/bin/behat --config /home/rajesh/moodles/m/moodledata/postgres_behat/behat/behat.yml --name "Verify that all form fields values can be get and set"

      Show
      RUN: vendor/bin/behat --config /home/rajesh/moodles/m/moodledata/postgres_behat/behat/behat.yml --name "Verify that all form fields values can be get and set"

    Description

      There is a function:
      Given I set the field with xpath "FIELDXPATH_STRING" to "FIELD_VALUE_STRING"

      and a function:
      Then the field "FIELD_STRING" matches value "FIELD_VALUE_STRING"

      So really there should be a function:
      Then the field with xpath "FIELDXPATH_STRING" matches value "FIELD_VALUE_STRING"
      to allow you to check the value of form fields based targeted by xpath

      Attachments

        Activity

          People

            andrew_dc_hancox Andrew Hancox
            andrew_dc_hancox Andrew Hancox
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            CiBoT CiBoT
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Nov/15