MDL-69149 core_grade: Correct xpath attribute selector

This commit is contained in:
Andrew Nicols
2020-06-26 19:59:56 +08:00
parent 89ce4db476
commit 959c2cb84e
+1 -1
View File
@@ -226,7 +226,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));