$deleteicon = $this->find('css', '.comment-delete a img', $deleteexception, $commentnode);
$deleteicon->click();
- // Yes confirm.
- $confirmnode = $this->find('xpath', "//div[@class='comment-delete-confirm']/descendant::a[contains(., '" . get_string('yes') . "')]");
- $confirmnode->click();
-
// Wait for the AJAX request.
$this->getSession()->wait(4 * 1000, false);
}
And I follow "Save comment"
And I wait "4" seconds
When I click on ".comment-delete a" "css_element"
- And I click on "Yes" "link"
And I wait "4" seconds
Then I should not see "$My own >nasty< \"string\"!"
And I follow "Blog post from user 1"