mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-56684-master-fix1' of http://github.com/damyon/moodle
This commit is contained in:
commit
912d854dc8
@ -44,7 +44,7 @@ class behat_tool_lp extends behat_base {
|
||||
* @param string $rowname
|
||||
*/
|
||||
public function click_on_edit_menu_of_the_row($nodetext, $rowname) {
|
||||
$xpathtarget = "//ul//li//ul//li[@class='tool-lp-menu-item']//a[contains(.,'" . $nodetext . "')]";
|
||||
$xpathtarget = "//ul//li//ul//li[contains(concat(' ', @class, ' '), ' tool-lp-menu-item ')]//a[contains(.,'" . $nodetext . "')]";
|
||||
|
||||
$this->execute('behat_general::i_click_on_in_the', [get_string('edit'), 'link', $this->escape($rowname), 'table_row']);
|
||||
$this->execute('behat_general::i_click_on_in_the', [$xpathtarget, 'xpath_element', $this->escape($rowname), 'table_row']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user