MDL-69149 core_grade: Correct xpath attribute selector

This commit is contained in:
Andrew Nicols
2020-06-26 19:59:56 +08:00
parent 4557b7fed2
commit a46018529b
+1 -1
View File
@@ -203,7 +203,7 @@ class behat_grade extends behat_base {
$inputxpath = "//input[@class='idnumber'][" .
"parent::li[@class='item'][text()='" . $gradeitem . "']" .
" | " .
"parent::li[@class='categoryitem' | @class='courseitem']" .
"parent::li[@class='categoryitem' or @class='courseitem']" .
"/parent::ul/parent::li[starts-with(text(),'" . $gradeitem . "')]" .
"]";
$this->execute('behat_forms::i_set_the_field_with_xpath_to', array($inputxpath, $idnumber));