MDL-52839 behat: Fixed xpath and wait to ensure element is visible
[moodle.git] / mod / assign / feedback / editpdf / tests / behat / annotate_pdf.feature
index c1dfa7a..36e3765 100644 (file)
@@ -60,7 +60,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
     And I click on ".stampbutton" "css_element"
     And I click on ".linebutton" "css_element"
     And I click on ".commentcolourbutton" "css_element"
-    And I click on "//img[@alt=\"Blue\"]" "xpath_element"
+    And I click on "//img[@alt=\"Blue\"]/parent::button" "xpath_element"
     And I change window size to "medium"
     And I wait until the page is ready
     And I click on "Close" "button"